org.springsource.loaded
Class SystemPropertyConfiguredIsReloadableTypePlugin

java.lang.Object
  extended by org.springsource.loaded.SystemPropertyConfiguredIsReloadableTypePlugin
All Implemented Interfaces:
IsReloadableTypePlugin, Plugin

public class SystemPropertyConfiguredIsReloadableTypePlugin
extends java.lang.Object
implements IsReloadableTypePlugin

This is not a 'default' plugin, it must be registered by specifying the following on the springloaded option: "plugins=org.springsource.loaded.SystemPropertyConfiguredIsReloadableTypePlugin". The behaviour of this plugin is configured by a system property that is constantly checked (not cached), this property determines whether files in certain paths are reloadable or not.

Since:
0.7.3

Field Summary
static boolean debug
           
 
Constructor Summary
SystemPropertyConfiguredIsReloadableTypePlugin()
           
 
Method Summary
 ReloadDecision shouldBeMadeReloadable(TypeRegistry typeRegistry, java.lang.String typename, java.security.ProtectionDomain protectionDomain, byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static final boolean debug
Constructor Detail

SystemPropertyConfiguredIsReloadableTypePlugin

public SystemPropertyConfiguredIsReloadableTypePlugin()
Method Detail

shouldBeMadeReloadable

public ReloadDecision shouldBeMadeReloadable(TypeRegistry typeRegistry,
                                             java.lang.String typename,
                                             java.security.ProtectionDomain protectionDomain,
                                             byte[] bytes)
Specified by:
shouldBeMadeReloadable in interface IsReloadableTypePlugin
typename - slashed type name (e.g. java/lang/String)
bytes - the classfile data