public interface ConstructorStrategy
SubclassDynamicTypeBuilder
.ConstructorStrategy.Default
Modifier and Type | Interface and Description |
---|---|
static class |
ConstructorStrategy.Default
Default implementations of constructor strategies.
|
static class |
ConstructorStrategy.ForDefaultConstructor
A constructor strategy that creates a default constructor that invokes a super constructor with default arguments.
|
Modifier and Type | Method and Description |
---|---|
List<MethodDescription.Token> |
extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.
|
MethodRegistry |
inject(TypeDescription instrumentedType,
MethodRegistry methodRegistry)
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. |
List<MethodDescription.Token> extractConstructors(TypeDescription instrumentedType)
instrumentedType
- The type for which the constructors should be created.MethodRegistry inject(TypeDescription instrumentedType, MethodRegistry methodRegistry)
extractConstructors(TypeDescription)
method of this instance.instrumentedType
- The instrumented type.methodRegistry
- The original method registry.Copyright © 2014–2025. All rights reserved.