public interface ConstructorInterceptor extends Interceptor
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
afterConstructor(java.lang.Object[] args,
java.lang.Object instantiatedInstance)
Executed after the constructor passing the args and the instantiated instance.
|
java.lang.Object |
beforeConstructor(java.lang.Object[] args,
InvocationCallback callback)
Executed before the real constructor.
|
afterInvoke, beforeInvoke
java.lang.Object beforeConstructor(java.lang.Object[] args, InvocationCallback callback)
args
- The constructor argscallback
- The callback objectjava.lang.Object afterConstructor(java.lang.Object[] args, java.lang.Object instantiatedInstance)
args
- The argumentsinstantiatedInstance
- The instantiated instance