public interface MethodRegistry
Modifier and Type | Interface and Description |
---|---|
static interface |
MethodRegistry.Compiled
A compiled version of a method registry.
|
static class |
MethodRegistry.Default
A default implementation of a method registry.
|
static interface |
MethodRegistry.Handler
A handler for implementing a method.
|
static interface |
MethodRegistry.Prepared
A method registry that fully prepared the instrumented type.
|
Modifier and Type | Method and Description |
---|---|
MethodRegistry |
append(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Appends the given method definition to this method registry, i.e.
|
MethodRegistry.Prepared |
prepare(InstrumentedType instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
LatentMethodMatcher methodFilter)
Prepares this method registry.
|
MethodRegistry |
prepend(LatentMethodMatcher methodMatcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodTransformer methodTransformer)
Prepends the given method definition to this method registry, i.e.
|
MethodRegistry prepend(LatentMethodMatcher methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, MethodTransformer methodTransformer)
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.methodTransformer
- The method transformer to be applied to implemented methods.MethodRegistry append(LatentMethodMatcher methodMatcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, MethodTransformer methodTransformer)
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.methodTransformer
- The method transformer to be applied to implemented methods.MethodRegistry.Prepared prepare(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, LatentMethodMatcher methodFilter)
instrumentedType
- The instrumented type that should be created.methodGraphCompiler
- The method graph compiler to be used for analyzing the fully assembled instrumented type.methodFilter
- A filter that only matches methods that should be instrumented.Copyright © 2014–2015. All rights reserved.