Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. package com.puppetlabs.puppetserver;
  2.  
  3. import java.util.Map;
  4.  
  5. /**
  6. *
  7. * This interface is a bridge between the clojure/Java code and the ruby class
  8. * `JRubyPuppet`. (defined in `src/ruby/puppet-server-lib/jruby_puppet.rb`.)
  9. * The ruby class uses some JRuby magic that causes it to "implement" the Java
  10. * interface.
  11. *
  12. * So, from the outside (in the clojure/Java code), we can interact with an instance
  13. * of the ruby class simply as if it were an instance of this interface; thus, consuming
  14. * code need not be aware of any of the JRuby implementation details.
  15. *
  16. */
  17. public interface JRubyPuppet {
  18. Map getClassInfoForEnvironment(String environment);
  19. JRubyPuppetResponse handleRequest(Map request);
  20. Object getSetting(String setting);
  21. String puppetVersion();
  22. void terminate();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement