public interface ConstructorStrategy
SubclassDynamicTypeBuilder
.ConstructorStrategy.Default
Modifier and Type | Interface and Description |
---|---|
static class |
ConstructorStrategy.Default
Default implementations of constructor strategies.
|
Modifier and Type | Method and Description |
---|---|
MethodList |
extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.
|
MethodRegistry |
inject(MethodRegistry methodRegistry,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
Returns a method registry that is capable of creating byte code for the constructors that were
provided by the
extractConstructors(TypeDescription)
method of this instance. |
MethodList extractConstructors(TypeDescription instrumentedType)
instrumentedType
- The type for which the constructors should be created.superType
is the direct super type of the instrumented type.MethodRegistry inject(MethodRegistry methodRegistry, MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory)
extractConstructors(TypeDescription)
method of this instance.methodRegistry
- The original method registry.defaultMethodAttributeAppenderFactory
- The default method attribute appender factory.Copyright © 2014–2015. All rights reserved.