org.springsource.loaded
Interface UnableToReloadEventProcessorPlugin

All Superinterfaces:
Plugin

public interface UnableToReloadEventProcessorPlugin
extends Plugin

UnableToReloadEventProcessor Plugins are called when a type cannot be reloaded due to an unsupported change. For information on registering them, see Plugin

Since:
0.7.3

Method Summary
 void unableToReloadEvent(java.lang.String typename, java.lang.Class<?> clazz, TypeDelta typeDelta, java.lang.String encodedTimestamp)
          Called when a type cannot be reloaded, due to a change being made that is not supported by the agent, for example when the set of interfaces for a type is changed.
 

Method Detail

unableToReloadEvent

void unableToReloadEvent(java.lang.String typename,
                         java.lang.Class<?> clazz,
                         TypeDelta typeDelta,
                         java.lang.String encodedTimestamp)
Called when a type cannot be reloaded, due to a change being made that is not supported by the agent, for example when the set of interfaces for a type is changed. Note, the class is only truly defined to the VM once, and so the Class object (clazz parameter) is always the same for the same type (ignoring multiple classloader situations). It is passed here so that plugins processing events can clear any cached state related to it. The encodedTimestamp is an encoding of the ID that the agent has assigned to this reloaded version of this type. The TypeDelta (a work in progress) captures details about what changed in the type that could not be reloaded.

Parameters:
typename - the (dotted) type name, for example java.lang.String
clazz - the Class object that has been reloaded
typeDelta - encapsulates information about the changes made in this version of the type that prevented the reload
encodedTimestamp - an encoded time stamp for this version, containing chars (A-Za-z0-9)