public static class MethodRegistry.Default extends Object implements MethodRegistry
Modifier and Type | Class and Description |
---|---|
protected static class |
MethodRegistry.Default.Compiled
A compiled version of a default method registry.
|
protected static class |
MethodRegistry.Default.Entry
An entry of a default method registry.
|
protected static class |
MethodRegistry.Default.Prepared
A prepared version of a default method registry.
|
MethodRegistry.Default, MethodRegistry.Handler
Constructor and Description |
---|
Default()
Creates a new default method registry without entries.
|
Modifier and Type | Method and Description |
---|---|
MethodRegistry |
append(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory)
Appends the given method definition to this method registry, i.e.
|
boolean |
equals(Object other) |
int |
hashCode() |
MethodRegistry.Prepared |
prepare(InstrumentedType instrumentedType,
MethodLookupEngine methodLookupEngine,
LatentMethodMatcher methodFilter)
Prepares this method registry.
|
MethodRegistry |
prepend(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory)
Prepends the given method definition to this method registry, i.e.
|
String |
toString() |
public MethodRegistry prepend(LatentMethodMatcher methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory)
MethodRegistry
prepend
in interface MethodRegistry
methodMatcher
- A matcher to identify all entries that are to be matched.handler
- The handler to instrument any matched method.attributeAppenderFactory
- A method attribute appender to apply to any matched method.public MethodRegistry append(LatentMethodMatcher methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory)
MethodRegistry
append
in interface MethodRegistry
methodMatcher
- A matcher to identify all entries that are to be matched.handler
- The handler to instrument any matched method.attributeAppenderFactory
- A method attribute appender to apply to any matched method.public MethodRegistry.Prepared prepare(InstrumentedType instrumentedType, MethodLookupEngine methodLookupEngine, LatentMethodMatcher methodFilter)
MethodRegistry
prepare
in interface MethodRegistry
instrumentedType
- The instrumented type that should be created.methodLookupEngine
- A method lookup engine to analyze the fully prepared type.methodFilter
- A filter that only matches methods that should be instrumented.Copyright © 2014–2015. All rights reserved.