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

Included in:
InstanceMethods
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.



70
71
72
73
# File 'lib/jenkins/plugin/proxy.rb', line 70

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