Module: Jenkins::Plugin::Proxy::Unmarshal

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

Overview

Reanimates Proxy objects after their values have been unserialized from XStream

Instance Method Summary collapse

Instance Method Details

#read_completedObject

Once the proxy has been unmarshalled from XStream, re-find the plugin that it is associated with, and use it to populate the @plugin field. Also, make sure to associate this proxy with the object it represents so that they remain referentially equivalent.



57
58
59
60
# File 'lib/jenkins/plugin/proxy.rb', line 57

def read_completed
  @plugin = Java.jenkins.model.Jenkins.getInstance().getPlugin(@pluginid).getNativeRubyPlugin()
  @plugin.linkout @object, self
end