|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springsource.loaded.agent.SpringPlugin
public class SpringPlugin
First stab at the Spring plugin for Spring-Loaded. Notes...
| Field Summary | |
|---|---|
static java.util.List<java.lang.Object> |
instancesOf_AnnotationMethodHandlerAdapter
|
static java.util.List<java.lang.Object> |
instancesOf_DefaultAnnotationHandlerMapping
|
static java.util.List<java.lang.Object> |
instancesOf_RequestMappingHandlerMapping
|
static boolean |
support305
|
| Constructor Summary | |
|---|---|
SpringPlugin()
|
|
| Method Summary | |
|---|---|
boolean |
accept(java.lang.String slashedTypeName,
java.lang.ClassLoader classLoader,
java.security.ProtectionDomain protectionDomain,
byte[] bytes)
Called by the agent to determine if this plugin is interested in changing the specified type at load time. |
byte[] |
modify(java.lang.String slashedClassName,
java.lang.ClassLoader classLoader,
byte[] bytes)
Once accept has returned true for a type, the modify method will be called to make the actual change to the classfile bytes. |
static void |
recordAnnotationMethodHandlerAdapterInstance(java.lang.Object obj)
|
static void |
recordDefaultAnnotationHandlerMappingInstance(java.lang.Object obj)
|
static void |
recordRequestMappingHandlerMappingInstance(java.lang.Object obj)
|
void |
reloadEvent(java.lang.String typename,
java.lang.Class<?> clazz,
java.lang.String versionsuffix)
Called when a type has been reloaded. |
boolean |
shouldRerunStaticInitializer(java.lang.String typename,
java.lang.Class<?> clazz,
java.lang.String encodedTimestamp)
Called when a type has been reloaded, allows the plugin to decide if the static initializer should be re-run for the reloaded type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.List<java.lang.Object> instancesOf_AnnotationMethodHandlerAdapter
public static java.util.List<java.lang.Object> instancesOf_DefaultAnnotationHandlerMapping
public static java.util.List<java.lang.Object> instancesOf_RequestMappingHandlerMapping
public static boolean support305
| Constructor Detail |
|---|
public SpringPlugin()
| Method Detail |
|---|
public boolean accept(java.lang.String slashedTypeName,
java.lang.ClassLoader classLoader,
java.security.ProtectionDomain protectionDomain,
byte[] bytes)
LoadtimeInstrumentationPlugin
accept in interface LoadtimeInstrumentationPluginslashedTypeName - the type name, slashed form (e.g. java/lang/String)classLoader - the classloader loading the typebytes - the classfile contents for the type
public byte[] modify(java.lang.String slashedClassName,
java.lang.ClassLoader classLoader,
byte[] bytes)
LoadtimeInstrumentationPlugin
modify in interface LoadtimeInstrumentationPluginclassLoader - the classloader loading the typebytes - the classfile contents for the type
public static void recordAnnotationMethodHandlerAdapterInstance(java.lang.Object obj)
public static void recordRequestMappingHandlerMappingInstance(java.lang.Object obj)
public static void recordDefaultAnnotationHandlerMappingInstance(java.lang.Object obj)
public void reloadEvent(java.lang.String typename,
java.lang.Class<?> clazz,
java.lang.String versionsuffix)
ReloadEventProcessorPlugin
reloadEvent in interface ReloadEventProcessorPlugintypename - the (dotted) type name, for example java.lang.Stringclazz - the Class object that has been reloadedversionsuffix - an encoded time stamp for this version, containing chars (A-Za-z0-9)
public boolean shouldRerunStaticInitializer(java.lang.String typename,
java.lang.Class<?> clazz,
java.lang.String encodedTimestamp)
ReloadEventProcessorPlugin
shouldRerunStaticInitializer in interface ReloadEventProcessorPlugintypename - the (dotted) type name, for example java.lang.Stringclazz - the Class object that has been reloadedencodedTimestamp - an encoded time stamp for this version, containing chars (A-Za-z0-9)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||