public class ConstructorCalledByConstructorInvocation extends CallerInvocation
| Modifier and Type | Field and Description |
|---|---|
protected Constructor<?> |
calling |
protected Constructor<?> |
constructor |
protected Method |
wrappingMethod |
arguments, callingObjectadvisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject| Constructor and Description |
|---|
ConstructorCalledByConstructorInvocation(Advisor advisor,
Constructor<?> calling,
Constructor<?> constructor,
Method wrappingMethod,
Object callingObject,
Object[] args,
Interceptor[] interceptors) |
ConstructorCalledByConstructorInvocation(ConByConInfo info,
Object callingObject,
Interceptor[] interceptors) |
ConstructorCalledByConstructorInvocation(ConByConInfo info,
Object callingObject,
Object[] args,
Interceptor[] interceptors) |
ConstructorCalledByConstructorInvocation(Object callingObject,
Interceptor[] interceptors) |
| Modifier and Type | Method and Description |
|---|---|
Invocation |
copy()
Copies complete state of Invocation object.
|
Constructor<?> |
getCalledConstructor() |
Constructor<?> |
getCallingConstructor() |
Object |
getMetaData(Object group,
Object attr)
This method resolves metadata based on the context of the invocation.
|
Invocation |
getWrapper(Interceptor[] newchain)
Returns a wrapper invocation object that can insert a new chain of interceptors
at runtime to the invocation flow.
|
Method |
getWrappingMethod()
Is the called constructor aspectized? If so then this method
returns the method that wraps the constructor.
|
Object |
invokeNext()
Invoke on the next interceptor in the chain.
|
Object |
invokeTarget()
Invokes the target joinpoint for this invocation skipping any subsequent
interceptors in the chain.
|
boolean |
isWrapped()
Is the called constructor aspectized? If so then there is a wrapping
method that must be called.
|
getArguments, getCallingObject, setArgumentsaddResponseAttachment, getAdvisor, getCurrentInterceptor, getInstanceResolver, getInterceptors, getMetaData, getResponseAttachment, getResponseContextInfo, getTargetObject, invokeNext, resolveAnnotation, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, resolveTypedAnnotation, resolveTypedAnnotation, resolveTypedClassAnnotation, setAdvisor, setInstanceResolver, setMetaData, setResponseContextInfo, setTargetObjectprotected Constructor<?> calling
protected Constructor<?> constructor
protected Method wrappingMethod
public ConstructorCalledByConstructorInvocation(ConByConInfo info, Object callingObject, Object[] args, Interceptor[] interceptors)
public ConstructorCalledByConstructorInvocation(ConByConInfo info, Object callingObject, Interceptor[] interceptors)
public ConstructorCalledByConstructorInvocation(Advisor advisor, Constructor<?> calling, Constructor<?> constructor, Method wrappingMethod, Object callingObject, Object[] args, Interceptor[] interceptors)
public ConstructorCalledByConstructorInvocation(Object callingObject, Interceptor[] interceptors)
public Constructor<?> getCallingConstructor()
public Constructor<?> getCalledConstructor()
public boolean isWrapped()
true if the constructor is wrappedpublic Method getWrappingMethod()
isWrapped() returns
true; null otherwise.public Object invokeNext() throws Throwable
invokeNext in interface InvocationinvokeNext in class InvocationBaseThrowablepublic Object invokeTarget() throws Throwable
invokeTarget in interface InvocationinvokeTarget in class InvocationBaseThrowablepublic Object getMetaData(Object group, Object attr)
getMetaData in interface InvocationgetMetaData in class InvocationBasepublic Invocation getWrapper(Interceptor[] newchain)
newchain - chain of interceptors to be inserted on invocationpublic Invocation copy()
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.