Module: Jenkins::Plugin::Wrapper::ClassMethods

Defined in:
lib/jenkins/plugin/wrapper.rb

Instance Method Summary collapse

Instance Method Details

#wrapper_for(java_class) ⇒ Object

Declare a wrapper class to wrap a certain type of java class. The plugin runtime will maintain this mapping so that whenever it sees an object coming in from Java, it knows the appropriate wrapper class to choose.

Parameters:

  • the (java.lang.Class)

    java class equivalent



24
25
26
# File 'lib/jenkins/plugin/wrapper.rb', line 24

def wrapper_for(java_class)
  Jenkins::Plugin::Proxies.register self, java_class
end