protected static class ConstructorStrategy.Default.WithMethodAttributeAppenderFactory extends Object implements ConstructorStrategy
ConstructorStrategy.Default| Modifier | Constructor and Description |
|---|---|
protected |
WithMethodAttributeAppenderFactory(ConstructorStrategy.Default delegate,
MethodAttributeAppender.Factory methodAttributeAppenderFactory)
Creates a new wrapper for a default constructor strategy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
List<MethodDescription.Token> |
extractConstructors(TypeDescription instrumentedType)
Extracts constructors for a given super type.
|
int |
hashCode() |
MethodRegistry |
inject(MethodRegistry methodRegistry)
Returns a method registry that is capable of creating byte code for the constructors that were
provided by the
ConstructorStrategy.extractConstructors(TypeDescription)
method of this instance. |
String |
toString() |
protected WithMethodAttributeAppenderFactory(ConstructorStrategy.Default delegate, MethodAttributeAppender.Factory methodAttributeAppenderFactory)
delegate - The delegate default constructor strategy.methodAttributeAppenderFactory - The method attribute appender factory to apply.public List<MethodDescription.Token> extractConstructors(TypeDescription instrumentedType)
ConstructorStrategyextractConstructors in interface ConstructorStrategyinstrumentedType - The type for which the constructors should be created.public MethodRegistry inject(MethodRegistry methodRegistry)
ConstructorStrategyConstructorStrategy.extractConstructors(TypeDescription)
method of this instance.inject in interface ConstructorStrategymethodRegistry - The original method registry.Copyright © 2014–2016. All rights reserved.