public class ByteBuddy extends Object
ByteBuddy
instances are configurable factories for creating new Java types at a JVM's runtime.
Such types are represented by DynamicType
s which can be saved to disk or loaded into
the Java virtual machine. Each instance of ByteBuddy
is immutable where any of the factory methods returns
a new instance that represents the altered configuration.
Note that any configuration defines to ignore the instrumentation of any synthetic methods or the default finalizer method
Object.finalize()
. This behavior can be altered by
withIgnoredMethods(net.bytebuddy.matcher.ElementMatcher)
.Modifier and Type | Class and Description |
---|---|
protected static interface |
ByteBuddy.Definable<T>
Any definable instance is either
ByteBuddy.Definable.Defined when a value is provided
or ByteBuddy.Definable.Undefined if a value is not provided. |
class |
ByteBuddy.MatchedMethodInterception
A matched method interception for a non-optional method definition.
|
static class |
ByteBuddy.MethodAnnotationTarget
A
ByteBuddy configuration with a selected set of methods for which annotations can
be defined. |
static interface |
ByteBuddy.MethodInterceptable
Implementations of this interface are capable of defining a method interception for a given set of methods.
|
static class |
ByteBuddy.OptionalMethodInterception
An optional method interception that allows to intercept a method selection only if this is needed.
|
protected static class |
ByteBuddy.Proxy
A proxy implementation for extending Byte Buddy while allowing for enhancing a
ByteBuddy
configuration. |
Modifier and Type | Field and Description |
---|---|
protected BridgeMethodResolver.Factory |
bridgeMethodResolverFactory
The factory for generating a bridge method resolver for the current configuration.
|
static String |
BYTE_BUDDY_DEFAULT_PREFIX
The default prefix for the default
NamingStrategy . |
protected ClassFileVersion |
classFileVersion
The class file version of the current configuration.
|
protected ClassVisitorWrapper.Chain |
classVisitorWrapperChain
The class visitor wrapper chain for the current configuration.
|
protected FieldAttributeAppender.Factory |
defaultFieldAttributeAppenderFactory
The default field attribute appender factory which is applied to any field that is defined
for instrumentations that are applied by this configuration.
|
protected MethodAttributeAppender.Factory |
defaultMethodAttributeAppenderFactory
The default method attribute appender factory which is applied to any method that is defined
or intercepted for instrumentations that are applied by this configuration.
|
protected ElementMatcher<? super MethodDescription> |
ignoredMethods
A matcher for identifying methods that should never be intercepted.
|
protected List<TypeDescription> |
interfaceTypes
A list of interface types to be implemented by any class that is implemented by the current configuration.
|
protected MethodLookupEngine.Factory |
methodLookupEngineFactory
The method lookup engine factory to apply to any type that is generated by this configuration.
|
protected MethodRegistry |
methodRegistry
The method registry for the current configuration.
|
protected ByteBuddy.Definable<Integer> |
modifiers
The modifiers to apply to any type that is generated by this configuration.
|
protected NamingStrategy.Unbound |
namingStrategy
The naming strategy of the current configuration.
|
protected TypeAttributeAppender |
typeAttributeAppender
The type attribute appender factory to apply to any type that is generated by this configuration.
|
Modifier | Constructor and Description |
---|---|
|
ByteBuddy()
Defines a new
ByteBuddy default configuration for the current Java virtual machine's
class file version. |
|
ByteBuddy(ClassFileVersion classFileVersion)
Defines a new
ByteBuddy default configuration for the given class file version. |
protected |
ByteBuddy(ClassFileVersion classFileVersion,
NamingStrategy.Unbound namingStrategy,
List<TypeDescription> interfaceTypes,
ElementMatcher<? super MethodDescription> ignoredMethods,
BridgeMethodResolver.Factory bridgeMethodResolverFactory,
ClassVisitorWrapper.Chain classVisitorWrapperChain,
MethodRegistry methodRegistry,
ByteBuddy.Definable<Integer> modifiers,
TypeAttributeAppender typeAttributeAppender,
MethodLookupEngine.Factory methodLookupEngineFactory,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
Defines a new
ByteBuddy configuration. |
Modifier and Type | Method and Description |
---|---|
ByteBuddy.MatchedMethodInterception |
constructor(ElementMatcher<? super MethodDescription> methodMatcher)
Intercepts a given constructor selection.
|
boolean |
equals(Object other) |
BridgeMethodResolver.Factory |
getBridgeMethodResolverFactory()
Returns the factory for the bridge method resolver for the current configuration.
|
ClassFileVersion |
getClassFileVersion()
Returns the class file version that is defined for the current configuration.
|
ClassVisitorWrapper.Chain |
getClassVisitorWrapperChain()
Returns the class visitor wrapper chain for the current configuration.
|
FieldAttributeAppender.Factory |
getDefaultFieldAttributeAppenderFactory()
Returns the default field attribute appender factory which is applied to any field that is defined
for instrumentations that are applied by this configuration.
|
MethodAttributeAppender.Factory |
getDefaultMethodAttributeAppenderFactory()
Returns the default method attribute appender factory which is applied to any method that is defined
or intercepted for instrumentations that are applied by this configuration.
|
ElementMatcher<? super MethodDescription> |
getIgnoredMethods()
Returns the matcher for the ignored methods for the current configuration.
|
List<TypeDescription> |
getInterfaceTypes()
Returns the naming strategy for the current configuration.
|
MethodLookupEngine.Factory |
getMethodLookupEngineFactory()
Returns the method lookup engine factory to apply to any type that is generated by this configuration.
|
MethodRegistry |
getMethodRegistry()
Returns the method registry for the current configuration.
|
ByteBuddy.Definable<Integer> |
getModifiers()
Returns the modifiers to apply to any type that is generated by this configuration.
|
NamingStrategy.Unbound |
getNamingStrategy()
Returns the naming strategy for the current configuration.
|
TypeAttributeAppender |
getTypeAttributeAppender()
Returns the type attribute appender factory to apply to any type that is generated by this configuration.
|
int |
hashCode() |
ByteBuddy.MatchedMethodInterception |
invokable(ElementMatcher<? super MethodDescription> methodMatcher)
Intercepts a given selection of byte code methods that can be a method or a constructor.
|
DynamicType.Builder<?> |
makeInterface(Class<?>... type)
Creates a dynamic type builder for an interface that extends a number of given interfaces.
|
<T> DynamicType.Builder<T> |
makeInterface(Class<T> type)
Creates a dynamic type builder for an interface that extends the given interface.
|
DynamicType.Builder<?> |
makeInterface(List<TypeDescription> typeDescriptions)
Creates a dynamic type builder for an interface that extends a number of given interfaces.
|
DynamicType.Builder<?> |
makeInterface(TypeDescription typeDescription)
Creates a dynamic type builder for an interface that extends a number of given interface.
|
ByteBuddy.MatchedMethodInterception |
method(ElementMatcher<? super MethodDescription> methodMatcher)
Intercepts a given method selection.
|
<T> DynamicType.Builder<T> |
rebase(Class<T> levelType)
Creates a dynamic type by weaving any changes into an already defined level type.
|
<T> DynamicType.Builder<T> |
rebase(Class<T> levelType,
ClassFileLocator classFileLocator)
Creates a dynamic type by weaving any changes into an already defined level type.
|
<T> DynamicType.Builder<T> |
rebase(Class<T> levelType,
ClassFileLocator classFileLocator,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a dynamic type by weaving any changes into an already defined level type.
|
<T> DynamicType.Builder<T> |
rebase(TypeDescription levelType,
ClassFileLocator classFileLocator)
Creates a dynamic type by weaving any changes into an already defined level type.
|
<T> DynamicType.Builder<T> |
rebase(TypeDescription levelType,
ClassFileLocator classFileLocator,
MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a dynamic type by weaving any changes into an already defined level type.
|
<T> DynamicType.Builder<T> |
redefine(Class<T> levelType)
Creates a dynamic type builder for redefining of the given type.
|
<T> DynamicType.Builder<T> |
redefine(Class<T> levelType,
ClassFileLocator classFileLocator)
Creates a dynamic type builder for redefining of the given type.
|
<T> DynamicType.Builder<T> |
redefine(TypeDescription levelType,
ClassFileLocator classFileLocator)
Creates a dynamic type builder for redefining of the given type.
|
<T> DynamicType.Builder<T> |
subclass(Class<T> superType)
Creates a dynamic type builder that creates a subclass of a given loaded type where the subclass
is created by the
ConstructorStrategy.Default.IMITATE_SUPER_TYPE
strategy. |
<T> DynamicType.Builder<T> |
subclass(Class<T> superType,
ConstructorStrategy constructorStrategy)
Creates a dynamic type builder that creates a subclass of a given loaded type.
|
<T> DynamicType.Builder<T> |
subclass(TypeDescription superType)
Creates a dynamic type builder that creates a subclass of a given type description where the subclass
is created by the
ConstructorStrategy.Default.IMITATE_SUPER_TYPE
strategy. |
<T> DynamicType.Builder<T> |
subclass(TypeDescription superType,
ConstructorStrategy constructorStrategy)
Creates a dynamic type builder that creates a subclass of a given type description.
|
String |
toString() |
ByteBuddy |
withAttribute(TypeAttributeAppender typeAttributeAppender)
Defines a new type attribute appender for this configuration that replaces the currently defined type
attribute appender.
|
ByteBuddy |
withBridgeMethodResolver(BridgeMethodResolver.Factory bridgeMethodResolverFactory)
Defines a bridge method resolver factory to be applied to this configuration.
|
ByteBuddy |
withClassFileVersion(ClassFileVersion classFileVersion)
Defines a new class file version for this configuration.
|
ByteBuddy |
withClassVisitor(ClassVisitorWrapper classVisitorWrapper)
Defines a new class visitor to be appended to the current collection of
ClassVisitor s
that are to be applied onto any creation process of a dynamic type. |
ByteBuddy |
withDefaultFieldAttributeAppender(FieldAttributeAppender.Factory attributeAppenderFactory)
Defines a new default field attribute appender factory that is applied onto any field.
|
ByteBuddy |
withDefaultMethodAttributeAppender(MethodAttributeAppender.Factory attributeAppenderFactory)
Defines a new default method attribute appender factory that is applied onto any method.
|
ByteBuddy |
withIgnoredMethods(ElementMatcher<? super MethodDescription> ignoredMethods)
Defines a new method matcher for methods that are ignored by any dynamic type that is created by this
configuration which will replace the current configuration.
|
ByteBuddy.OptionalMethodInterception |
withImplementing(Class<?>... type)
Defines all dynamic types that are created by this configuration to implement the given interface.
|
ByteBuddy.OptionalMethodInterception |
withImplementing(TypeDescription... type)
Defines all dynamic types that are created by this configuration to implement the given interface.
|
ByteBuddy |
withMethodLookupEngine(MethodLookupEngine.Factory methodLookupEngineFactory)
Defines a new
MethodLookupEngine.Factory to be used for creating
MethodLookupEngine s for type creations based on this configuration. |
ByteBuddy |
withModifiers(ModifierContributor.ForType... modifierContributor)
Defines a new modifier contributors for this configuration that replaces the currently defined modifier
contributes which might currently be implicit.
|
ByteBuddy |
withNamingStrategy(NamingStrategy.Unbound namingStrategy)
Defines a new naming strategy for this configuration.
|
ByteBuddy |
withNamingStrategy(NamingStrategy namingStrategy)
Defines a new naming strategy for this configuration.
|
ByteBuddy |
withTypeAnnotation(Annotation... annotation)
Defines a new type annotation for this configuration that replaces the currently defined type
attribute appender.
|
public static final String BYTE_BUDDY_DEFAULT_PREFIX
NamingStrategy
.protected final ClassFileVersion classFileVersion
protected final NamingStrategy.Unbound namingStrategy
protected final List<TypeDescription> interfaceTypes
protected final ElementMatcher<? super MethodDescription> ignoredMethods
protected final BridgeMethodResolver.Factory bridgeMethodResolverFactory
protected final ClassVisitorWrapper.Chain classVisitorWrapperChain
protected final MethodRegistry methodRegistry
protected final ByteBuddy.Definable<Integer> modifiers
protected final MethodLookupEngine.Factory methodLookupEngineFactory
protected final TypeAttributeAppender typeAttributeAppender
protected final FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory
protected final MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory
public ByteBuddy()
ByteBuddy
default configuration for the current Java virtual machine's
class file version.public ByteBuddy(ClassFileVersion classFileVersion)
ByteBuddy
default configuration for the given class file version.classFileVersion
- The class file version to apply.protected ByteBuddy(ClassFileVersion classFileVersion, NamingStrategy.Unbound namingStrategy, List<TypeDescription> interfaceTypes, ElementMatcher<? super MethodDescription> ignoredMethods, BridgeMethodResolver.Factory bridgeMethodResolverFactory, ClassVisitorWrapper.Chain classVisitorWrapperChain, MethodRegistry methodRegistry, ByteBuddy.Definable<Integer> modifiers, TypeAttributeAppender typeAttributeAppender, MethodLookupEngine.Factory methodLookupEngineFactory, FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory, MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
ByteBuddy
configuration.classFileVersion
- The currently defined class file version.namingStrategy
- The currently defined naming strategy.interfaceTypes
- The currently defined collection of interfaces to be implemented
by any dynamically created type.ignoredMethods
- The methods to always be ignored.bridgeMethodResolverFactory
- The bridge method resolver factory to be applied to any instrumentation
process.classVisitorWrapperChain
- The class visitor wrapper chain to be applied to any instrumentation
process.methodRegistry
- The currently valid method registry.modifiers
- The modifiers to define for any instrumentation process.typeAttributeAppender
- The type attribute appender to apply to any instrumentation process.methodLookupEngineFactory
- The method lookup engine factory to apply to this configuration.defaultFieldAttributeAppenderFactory
- The field attribute appender to apply as a default for any field
definition.defaultMethodAttributeAppenderFactory
- The method attribute appender to apply as a default for any
method definition or instrumentation.public ClassFileVersion getClassFileVersion()
public NamingStrategy.Unbound getNamingStrategy()
public List<TypeDescription> getInterfaceTypes()
public ElementMatcher<? super MethodDescription> getIgnoredMethods()
public BridgeMethodResolver.Factory getBridgeMethodResolverFactory()
public ClassVisitorWrapper.Chain getClassVisitorWrapperChain()
public MethodRegistry getMethodRegistry()
public ByteBuddy.Definable<Integer> getModifiers()
public MethodLookupEngine.Factory getMethodLookupEngineFactory()
public TypeAttributeAppender getTypeAttributeAppender()
public FieldAttributeAppender.Factory getDefaultFieldAttributeAppenderFactory()
public MethodAttributeAppender.Factory getDefaultMethodAttributeAppenderFactory()
public <T> DynamicType.Builder<T> subclass(Class<T> superType)
ConstructorStrategy.Default.IMITATE_SUPER_TYPE
strategy.T
- The most specific known type that the created dynamic type represents.superType
- The type or interface to be extended or implemented by the dynamic type.public <T> DynamicType.Builder<T> subclass(Class<T> superType, ConstructorStrategy constructorStrategy)
T
- The most specific known type that the created dynamic type represents.superType
- The type or interface to be extended or implemented by the dynamic type.constructorStrategy
- The constructor strategy to apply.public <T> DynamicType.Builder<T> subclass(TypeDescription superType)
ConstructorStrategy.Default.IMITATE_SUPER_TYPE
strategy.T
- The most specific known type that the created dynamic type represents.superType
- The type or interface to be extended or implemented by the dynamic type.public <T> DynamicType.Builder<T> subclass(TypeDescription superType, ConstructorStrategy constructorStrategy)
T
- The most specific known type that the created dynamic type represents.superType
- The type or interface to be extended or implemented by the dynamic type.constructorStrategy
- The constructor strategy to apply.public <T> DynamicType.Builder<T> makeInterface(Class<T> type)
T
- The most specific known type that the created dynamic type represents.type
- The interface to extend.public DynamicType.Builder<?> makeInterface(Class<?>... type)
type
- The interface types to extend.public DynamicType.Builder<?> makeInterface(TypeDescription typeDescription)
typeDescription
- The interface type to extend.public DynamicType.Builder<?> makeInterface(List<TypeDescription> typeDescriptions)
typeDescriptions
- The interface types to extend.public <T> DynamicType.Builder<T> redefine(Class<T> levelType)
Creates a dynamic type builder for redefining of the given type. The given class must be found on the
class path or by the class's ClassLoader
. Otherwise, the class file to the redefined class
must be located explicitly by providing a locator by
redefine(Class, net.bytebuddy.dynamic.ClassFileLocator)
.
Note: It is possible to experience unexpected errors in case that the provided levelType
and the
corresponding class file get out of sync, i.e. a type is redefined several times without providing an updated
version of the class file.
T
- The most specific known type that the created dynamic type represents.levelType
- The type to redefine.public <T> DynamicType.Builder<T> redefine(Class<T> levelType, ClassFileLocator classFileLocator)
Creates a dynamic type builder for redefining of the given type.
Note: It is possible to experience unexpected errors in case that the provided levelType
and the
corresponding class file get out of sync, i.e. a type is redefined several times without providing an updated
version of the class file.
T
- The most specific known type that the created dynamic type represents.levelType
- The type to redefine.classFileLocator
- A locator for finding a class file that represents a type.public <T> DynamicType.Builder<T> redefine(TypeDescription levelType, ClassFileLocator classFileLocator)
Creates a dynamic type builder for redefining of the given type.
Note: It is possible to experience unexpected errors in case that the provided levelType
and the
corresponding class file get out of sync, i.e. a type is redefined several times without providing an updated
version of the class file.
T
- The most specific known type that the created dynamic type represents.levelType
- The type to redefine.classFileLocator
- A locator for finding a class file that represents a type.public <T> DynamicType.Builder<T> rebase(Class<T> levelType)
Creates a dynamic type by weaving any changes into an already defined level type. The rebased type is
created by adding methods to the level type where the original method implementations are copied to
renamed, private methods within the created dynamic type and therefore remain invokable as super method calls.
The result is a rebased type with subclass semantics. The given class must be found on the class path or
by the provided class's ClassLoader
. Otherwise, the class file to the redefined class
must be located explicitly by providing a locator by
rebase(Class, net.bytebuddy.dynamic.ClassFileLocator)
.
Note: It is possible to experience unexpected errors in case that the provided levelType
and the
corresponding class file get out of sync, i.e. a type is rebased several times without updating the class file.
T
- The most specific known type that the created dynamic type represents.levelType
- The type which is to be rebased.public <T> DynamicType.Builder<T> rebase(Class<T> levelType, ClassFileLocator classFileLocator)
Creates a dynamic type by weaving any changes into an already defined level type. The rebased type is created by adding methods to the level type where the original method implementations are copied to renamed, private methods within the created dynamic type and therefore remain invokable as super method calls. The result is a rebased type with subclass semantics.
Note: It is possible to experience unexpected errors in case that the provided levelType
and the
corresponding class file get out of sync, i.e. a type is rebased several times without updating the class file.
T
- The most specific known type that the created dynamic type represents.levelType
- The type which is to be rebased.classFileLocator
- A locator for finding a class file that represents a type.public <T> DynamicType.Builder<T> rebase(Class<T> levelType, ClassFileLocator classFileLocator, MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a dynamic type by weaving any changes into an already defined level type. The rebased type is created by adding methods to the level type where the original method implementations are copied to renamed, private methods within the created dynamic type and therefore remain invokable as super method calls. The result is a rebased type with subclass semantics.
Note: It is possible to experience unexpected errors in case that the provided levelType
and the
corresponding class file get out of sync, i.e. a type is rebased several times without updating the class file.
T
- The most specific known type that the created dynamic type represents.levelType
- The type which is to be rebased.classFileLocator
- A locator for finding a class file that represents a type.methodNameTransformer
- The method name transformer that is used for rebasing methods.public <T> DynamicType.Builder<T> rebase(TypeDescription levelType, ClassFileLocator classFileLocator)
Creates a dynamic type by weaving any changes into an already defined level type. The rebased type is created by adding methods to the level type where the original method implementations are copied to renamed, private methods within the created dynamic type and therefore remain invokable as super method calls. The result is a rebased type with subclass semantics.
Note: It is possible to experience unexpected errors in case that the provided levelType
and the
corresponding class file get out of sync, i.e. a type is rebased several times without updating the class file.
T
- The most specific known type that the created dynamic type represents.levelType
- The type which is to be rebased.classFileLocator
- A locator for finding a class file that represents a type.public <T> DynamicType.Builder<T> rebase(TypeDescription levelType, ClassFileLocator classFileLocator, MethodRebaseResolver.MethodNameTransformer methodNameTransformer)
Creates a dynamic type by weaving any changes into an already defined level type. The rebased type is created by adding methods to the level type where the original method implementations are copied to renamed, private methods within the created dynamic type and therefore remain invokable as super method calls. The result is a rebased type with subclass semantics.
Note: It is possible to experience unexpected errors in case that the provided levelType
and the
corresponding class file get out of sync, i.e. a type is rebased several times without updating the class file.
T
- The most specific known type that the created dynamic type represents.levelType
- The type which is to be rebased.classFileLocator
- A locator for finding a class file that represents a type.methodNameTransformer
- The method name transformer that is used for rebasing methods.public ByteBuddy withClassFileVersion(ClassFileVersion classFileVersion)
classFileVersion
- The class file version to define for this configuration.public ByteBuddy withNamingStrategy(NamingStrategy.Unbound namingStrategy)
namingStrategy
- The unbound naming strategy to apply to the current configuration.public ByteBuddy withNamingStrategy(NamingStrategy namingStrategy)
namingStrategy
- The naming strategy to apply to the current configuration.public ByteBuddy withModifiers(ModifierContributor.ForType... modifierContributor)
modifierContributor
- The modifier contributors to define explicitly for this configuration.public ByteBuddy withAttribute(TypeAttributeAppender typeAttributeAppender)
typeAttributeAppender
- The type attribute appender to define for this configuration.public ByteBuddy withTypeAnnotation(Annotation... annotation)
annotation
- The type annotations to define for this configuration.public ByteBuddy.OptionalMethodInterception withImplementing(Class<?>... type)
type
- The interface type to implement.public ByteBuddy.OptionalMethodInterception withImplementing(TypeDescription... type)
type
- The interface type to implement.public ByteBuddy withIgnoredMethods(ElementMatcher<? super MethodDescription> ignoredMethods)
ignoredMethods
- The methods to always be ignored for any instrumentation.public ByteBuddy withBridgeMethodResolver(BridgeMethodResolver.Factory bridgeMethodResolverFactory)
bridgeMethodResolverFactory
- The bridge method resolver factory to be applied to any instrumentation
process.public ByteBuddy withClassVisitor(ClassVisitorWrapper classVisitorWrapper)
ClassVisitor
s
that are to be applied onto any creation process of a dynamic type.classVisitorWrapper
- The class visitor wrapper to ba appended to the current chain of class visitor wrappers.public ByteBuddy withMethodLookupEngine(MethodLookupEngine.Factory methodLookupEngineFactory)
MethodLookupEngine.Factory
to be used for creating
MethodLookupEngine
s for type creations based on this configuration.
The default lookup engine queries any class or interface type that is represented by the created type. These
queries might however be costly such that this factory can be configured to save lookup time, for example
by providing additional caching or by providing precomputed results.methodLookupEngineFactory
- The method lookup engine factory to apply to this configuration.public ByteBuddy withDefaultFieldAttributeAppender(FieldAttributeAppender.Factory attributeAppenderFactory)
attributeAppenderFactory
- The attribute appender factory that is applied as a default on any
field that is created by a dynamic type that is created with this
configuration.public ByteBuddy withDefaultMethodAttributeAppender(MethodAttributeAppender.Factory attributeAppenderFactory)
attributeAppenderFactory
- The attribute appender factory that is applied as a default on any
method that is created or intercepted by a dynamic type that is created
with this configuration.public ByteBuddy.MatchedMethodInterception invokable(ElementMatcher<? super MethodDescription> methodMatcher)
methodMatcher
- The method matcher representing all byte code methods to intercept.public ByteBuddy.MatchedMethodInterception method(ElementMatcher<? super MethodDescription> methodMatcher)
methodMatcher
- The method matcher representing all methods to intercept.public ByteBuddy.MatchedMethodInterception constructor(ElementMatcher<? super MethodDescription> methodMatcher)
methodMatcher
- The method matcher representing all constructors to intercept.Copyright © 2014–2015. All rights reserved.