|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassInstantiator<T>
The end result of a class transformation is a ClassInstantiator that can be used to instantiate an instance of the transformed class.
| Method Summary | ||
|---|---|---|
T |
newInstance()
Creates and returns a new instance of the transformed class. |
|
|
with(Class<V> valueType,
V instanceContextValue)
Returns a new instantiator that adds the indicated value to the instance's InstanceContext. |
|
| Method Detail |
|---|
T newInstance()
<V> ClassInstantiator<T> with(Class<V> valueType,
V instanceContextValue)
InstanceContext.
valueType - defines the type of value, and acts as a key to retrieve the valueinstanceContextValue - the non-null value stored
AssertionError - if instanceContextValue is null
IllegalStateException - if a value of the given value type has already been stored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||