|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Factory
All enhanced instances returned by the Enhancer class implement this interface.
Method Summary | |
---|---|
MethodInterceptor |
interceptor()
Returns the current interceptor in use. |
void |
interceptor(MethodInterceptor ih)
Set the current interceptor for this object. |
java.lang.Object |
newInstance(java.lang.Class[] types,
java.lang.Object[] args,
MethodInterceptor ih)
Creates a new instance of the same type, using the constructor matching the given signature. |
java.lang.Object |
newInstance(MethodInterceptor ih)
Creates new instance of the same type, using the no-arg constructor. |
Method Detail |
---|
java.lang.Object newInstance(MethodInterceptor ih)
ih
- the new interceptor to use
MethodInterceptor interceptor()
java.lang.Object newInstance(java.lang.Class[] types, java.lang.Object[] args, MethodInterceptor ih)
types
- the constructor signatureargs
- the constructor argumentsih
- the new interceptor to usevoid interceptor(MethodInterceptor ih)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |