@HashCodeAndEqualsPlugin.Enhance 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(LatentMatcher<? super MethodDescription> matcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
Transformer<MethodDescription> transformer)
Appends the given method definition to this method registry, i.e.
|
MethodRegistry.Prepared |
prepare(InstrumentedType instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
TypeValidation typeValidation,
VisibilityBridgeStrategy visibilityBridgeStrategy,
LatentMatcher<? super MethodDescription> ignoredMethods)
Prepares this method registry.
|
MethodRegistry |
prepend(LatentMatcher<? super MethodDescription> matcher,
MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
Transformer<MethodDescription> transformer)
Prepends the given method definition to this method registry, i.e.
|
public MethodRegistry prepend(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
prepend
in interface MethodRegistry
matcher
- A matcher to identify any method that this definition concerns.handler
- The handler to instrument any matched method.attributeAppenderFactory
- A method attribute appender to apply to any matched method.transformer
- The method transformer to be applied to implemented methods.public MethodRegistry append(LatentMatcher<? super MethodDescription> matcher, MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, Transformer<MethodDescription> transformer)
append
in interface MethodRegistry
matcher
- 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.transformer
- The method transformer to be applied to implemented methods.public MethodRegistry.Prepared prepare(InstrumentedType instrumentedType, MethodGraph.Compiler methodGraphCompiler, TypeValidation typeValidation, VisibilityBridgeStrategy visibilityBridgeStrategy, LatentMatcher<? super MethodDescription> ignoredMethods)
prepare
in interface MethodRegistry
instrumentedType
- The instrumented type that should be created.methodGraphCompiler
- The method graph compiler to be used for analyzing the fully assembled instrumented type.typeValidation
- Determines if a type should be explicitly validated.visibilityBridgeStrategy
- The visibility bridge strategy to apply.ignoredMethods
- A filter that only matches methods that should be instrumented.Copyright © 2014–2020. All rights reserved.