public class ConstructorCalledByMethodInvocation extends CallerInvocation
Modifier and Type | Field and Description |
---|---|
protected Class<?> |
callingClass |
protected Method |
callingMethod |
protected Constructor<?> |
constructor |
protected Method |
wrappingMethod |
arguments, callingObject
advisor, currentInterceptor, instanceResolver, interceptors, metadata, responseContextInfo, targetObject
Constructor and Description |
---|
ConstructorCalledByMethodInvocation(Advisor advisor,
Class<?> callingClass,
Method callingMethod,
Constructor<?> constructor,
Method wrappingMethod,
Object callingObject,
Object[] args,
Interceptor[] interceptors) |
ConstructorCalledByMethodInvocation(ConByMethodInfo info,
Object callingObject,
Interceptor[] interceptors) |
ConstructorCalledByMethodInvocation(ConByMethodInfo info,
Object callingObject,
Object[] args,
Interceptor[] interceptors) |
ConstructorCalledByMethodInvocation(Object callingObject,
Interceptor[] interceptors) |
Modifier and Type | Method and Description |
---|---|
Invocation |
copy()
Copies complete state of Invocation object.
|
Constructor<?> |
getCalledConstructor() |
Class<?> |
getCallingClass() |
Method |
getCallingMethod() |
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, setArguments
addResponseAttachment, getAdvisor, getCurrentInterceptor, getInstanceResolver, getInterceptors, getMetaData, getResponseAttachment, getResponseContextInfo, getTargetObject, invokeNext, resolveAnnotation, resolveAnnotation, resolveClassAnnotation, resolveClassMetaData, resolveTypedAnnotation, resolveTypedAnnotation, resolveTypedClassAnnotation, setAdvisor, setInstanceResolver, setMetaData, setResponseContextInfo, setTargetObject
protected Class<?> callingClass
protected Method callingMethod
protected Constructor<?> constructor
protected Method wrappingMethod
public ConstructorCalledByMethodInvocation(ConByMethodInfo info, Object callingObject, Object[] args, Interceptor[] interceptors)
public ConstructorCalledByMethodInvocation(ConByMethodInfo info, Object callingObject, Interceptor[] interceptors)
public ConstructorCalledByMethodInvocation(Advisor advisor, Class<?> callingClass, Method callingMethod, Constructor<?> constructor, Method wrappingMethod, Object callingObject, Object[] args, Interceptor[] interceptors)
public ConstructorCalledByMethodInvocation(Object callingObject, Interceptor[] interceptors)
public Class<?> getCallingClass()
public Method getCallingMethod()
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 Invocation
invokeNext
in class InvocationBase
Throwable
public Object invokeTarget() throws Throwable
invokeTarget
in interface Invocation
invokeTarget
in class InvocationBase
Throwable
public Object getMetaData(Object group, Object attr)
getMetaData
in interface Invocation
getMetaData
in class InvocationBase
public 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.