|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.aop.Advisor org.jboss.aop.proxy.container.MarshalledProxyAdvisor
public class MarshalledProxyAdvisor
The advisor used by a container proxy that is unmarshalled in a remote jvm
Field Summary |
---|
Constructor Summary | |
---|---|
MarshalledProxyAdvisor(String name,
AspectManager manager)
|
Method Summary | |
---|---|
void |
addClassMetaData(ClassMetaDataBinding data)
|
void |
addMethodInfo(MethodInfo info)
|
void |
appendInterceptor(Interceptor interceptor)
Appends an interceptor to the end of the instance's interceptor chain. |
void |
appendInterceptor(int index,
Interceptor interceptor)
Appends an interceptor at position index of the appended instance's
interceptor chain. |
void |
appendInterceptorStack(String stackName)
Appends an interceptor chain to the end of the instance's interceptor chain. |
Domain |
getDomain()
Returns the domain where this advisor belongs. |
Object |
getInstance()
Returns the advised instance managed by this advisor. |
Interceptor[] |
getInterceptors()
Returns the interceptor chain of the advised instance. |
Interceptor[] |
getInterceptors(Interceptor[] baseChain)
Merges the advised instance interceptor chain with baseChain . |
SimpleMetaData |
getMetaData()
Returns the metadata bound to the advised instance. |
MethodInfo |
getMethodInfo(long hash)
Returns the MethodInfo that represents the execution of the method
identified by hash . |
MethodInfo[] |
getMethodInfos()
|
Object |
getPerInstanceAspect(AspectDefinition def)
Returns a per instance aspect object defined by def . |
Object |
getPerInstanceAspect(String aspectName)
Returns a per instance aspect object identified by aspectName . |
Object |
getPerInstanceJoinpointAspect(Joinpoint joinpoint,
AspectDefinition def)
Returns the per instance joinpoint aspect object defined by def to be
applied at joipoint . |
boolean |
hasInterceptors()
Indicates if the advised instance interceptor chain is not empty. |
void |
insertInterceptor(Interceptor interceptor)
Inserts an interceptor at the beginning of the instance's interceptor chain. |
void |
insertInterceptor(int index,
Interceptor interceptor)
Inserts an interceptor at position index of the inserted instance's
interceptor chain. |
void |
insertInterceptorStack(String stackName)
Inserts an interceptor stack to the beginning of the instance's interceptor chain. |
protected void |
rebuildInterceptors()
|
protected void |
rebuildInterceptorsForAddedBinding(AdviceBinding binding)
|
protected void |
rebuildInterceptorsForRemovedBinding(AdviceBinding removedBinding)
|
void |
removeClassMetaData(ClassMetaDataBinding data)
|
void |
removeInterceptor(String name)
Removes an interceptor from instance's interceptor chain. |
void |
removeInterceptorStack(String name)
Removes an interceptor stack from the instance's interceptor chain. |
void |
setClazz(Class<?> clazz)
|
void |
setInstance(Object instance)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.aop.InstanceAdvisor |
---|
hasAspects |
Constructor Detail |
---|
public MarshalledProxyAdvisor(String name, AspectManager manager)
Method Detail |
---|
public void setClazz(Class<?> clazz)
public void addMethodInfo(MethodInfo info)
public void setInstance(Object instance)
public void addClassMetaData(ClassMetaDataBinding data)
addClassMetaData
in class Advisor
protected void rebuildInterceptors()
rebuildInterceptors
in class Advisor
protected void rebuildInterceptorsForAddedBinding(AdviceBinding binding)
rebuildInterceptorsForAddedBinding
in class Advisor
protected void rebuildInterceptorsForRemovedBinding(AdviceBinding removedBinding)
rebuildInterceptorsForRemovedBinding
in class Advisor
public void removeClassMetaData(ClassMetaDataBinding data)
removeClassMetaData
in class Advisor
public MethodInfo getMethodInfo(long hash)
Advisor
MethodInfo
that represents the execution of the method
identified by hash
.
getMethodInfo
in class Advisor
hash
- a hash code that identifies uniquely a method inside the context.
MethodInfo
representing the queried method execution
joinpoint.public MethodInfo[] getMethodInfos()
public void appendInterceptor(Interceptor interceptor)
InstanceAdvisor
appendInterceptor
in interface InstanceAdvisor
interceptor
- the interceptor to be appended to the instance's chainpublic void appendInterceptor(int index, Interceptor interceptor) throws IndexOutOfBoundsException
InstanceAdvisor
index
of the appended instance's
interceptor chain.
appendInterceptor
in interface InstanceAdvisor
index
- the position where to insert interceptor
. This value must
not be greater than or equal to the number of appended interceptors in
the chain.interceptor
- the interceptor to be added to the instance's chain.
IndexOutOfBoundsException
- if index
is greater than or equal to
the total number of appended interceptors contained in this advisor, or
if index
is a negative valuepublic void appendInterceptorStack(String stackName)
InstanceAdvisor
appendInterceptorStack
in interface InstanceAdvisor
stackName
- the name that identifies the interceptor stack to be appendedpublic Domain getDomain()
InstanceAdvisor
getDomain
in interface InstanceAdvisor
public Object getInstance()
InstanceAdvisor
getInstance
in interface InstanceAdvisor
public Interceptor[] getInterceptors()
InstanceAdvisor
For internal use only.
getInterceptors
in interface InstanceAdvisor
public Interceptor[] getInterceptors(Interceptor[] baseChain)
InstanceAdvisor
baseChain
.
baseChain
, and finally all the appended interceptors.
For internal use only.
getInterceptors
in interface InstanceAdvisor
baseChain
- the chain to be joined with the advised instance's chain.
baseChain
with the instance's chain. May return baseChain
if the last one
is empty.public SimpleMetaData getMetaData()
InstanceAdvisor
getMetaData
in interface InstanceAdvisor
public Object getPerInstanceAspect(String aspectName)
InstanceAdvisor
aspectName
.
For internal use only.
getPerInstanceAspect
in interface InstanceAdvisor
aspectName
- name of the queried aspect
aspectName
public Object getPerInstanceAspect(AspectDefinition def)
InstanceAdvisor
def
.
For internal use only.
getPerInstanceAspect
in interface InstanceAdvisor
def
- definition of the queried aspect
def
public Object getPerInstanceJoinpointAspect(Joinpoint joinpoint, AspectDefinition def)
InstanceAdvisor
def
to be
applied at joipoint
.
For internal use only.
getPerInstanceJoinpointAspect
in interface InstanceAdvisor
joinpoint
- the joinpoint to which the aspect object will be applied.def
- definition of the queried aspect
def
to be applied
at joinpoint
public boolean hasInterceptors()
InstanceAdvisor
hasInterceptors
in interface InstanceAdvisor
true
if the advised instance interceptor chain contains one
or more elements.public void insertInterceptor(Interceptor interceptor)
InstanceAdvisor
insertInterceptor
in interface InstanceAdvisor
interceptor
- the interceptor to be added to the instance's chain.public void insertInterceptor(int index, Interceptor interceptor) throws IndexOutOfBoundsException
InstanceAdvisor
index
of the inserted instance's
interceptor chain.
insertInterceptor
in interface InstanceAdvisor
index
- the position where to insert interceptor
. This value must
not be greater than or equal to the number of inserted interceptors in
the chain.interceptor
- the interceptor to be added to the instance's chain.
IndexOutOfBoundsException
- if index
is greater than or equal to
the total number of inserted interceptors contained in this advisor, or
if index
is a negative valuepublic void insertInterceptorStack(String stackName)
InstanceAdvisor
insertInterceptorStack
in interface InstanceAdvisor
stackName
- the name that identifies the interceptor stack to be insertedpublic void removeInterceptor(String name)
InstanceAdvisor
removeInterceptor
in interface InstanceAdvisor
name
- name of the interceptor to be removed from the chain.Interceptor.getName()
public void removeInterceptorStack(String name)
InstanceAdvisor
removeInterceptorStack
in interface InstanceAdvisor
name
- the name that identifies the interceptor stack to be removed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |