|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.aop.Advisor
org.jboss.aop.ClassContainer
org.jboss.aop.proxy.container.ClassProxyContainer
org.jboss.aop.proxy.container.InstanceProxyContainer
public class InstanceProxyContainer
The InstanceAdvisor returned by ClassProxyContainer
Field Summary |
---|
Fields inherited from class org.jboss.aop.ClassContainer |
---|
advisedFields |
Constructor Summary | |
---|---|
InstanceProxyContainer(String name,
ProxyAdvisorDomain instanceDomain,
Advisor classAdvisor,
org.jboss.metadata.spi.MetaData metaData)
|
Method Summary | |
---|---|
void |
appendInterceptor(Interceptor interceptor)
Not implemented InstanceAdvisor method, we should be using the domain |
void |
appendInterceptor(int index,
Interceptor interceptor)
Not implemented InstanceAdvisor method, we should be using the domain |
void |
appendInterceptorStack(String stackName)
Not implemented InstanceAdvisor method, we should be using the domain |
static InstanceProxyContainer |
createInstanceProxyContainer(Advisor classAdvisor,
InterfaceIntroduction introduction,
org.jboss.metadata.spi.MetaData metaData)
|
Advisor |
getClassAdvisor()
|
Domain |
getDomain()
Returns the domain where this advisor belongs. |
Object |
getInstance()
Returns the advised instance managed by this advisor. |
Interceptor[] |
getInterceptors()
Not implemented InstanceAdvisor method, we should be using the domain |
Interceptor[] |
getInterceptors(Interceptor[] baseChain)
Not implemented InstanceAdvisor method, we should be using the domain |
SimpleMetaData |
getMetaData()
Returns the metadata bound to the advised instance. |
MethodInfo |
getMethodInfo(long hash)
If the target instance is advised, make sure that we set the unadvised method to the one stored by the class advisor so that we don't get double invocations. |
protected Advisor |
getParentAdvisor()
|
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()
Not implemented InstanceAdvisor method, we should be using the domain |
void |
insertInterceptor(Interceptor interceptor)
Not implemented InstanceAdvisor method, we should be using the domain |
void |
insertInterceptor(int index,
Interceptor interceptor)
Not implemented InstanceAdvisor method, we should be using the domain |
void |
insertInterceptorStack(String stackName)
Not implemented InstanceAdvisor method, we should be using the domain |
void |
removeFromDomain()
|
void |
removeInterceptor(String name)
Not implemented InstanceAdvisor method, we should be using the domain |
void |
removeInterceptorStack(String name)
Not implemented InstanceAdvisor method, we should be using the domain |
Methods inherited from class org.jboss.aop.proxy.container.ClassProxyContainer |
---|
addPerClassAspect, chainOverridingForInheritedMethods, createConstructorTables, createInstanceProxyContainer, createMethodMap, getMethodInfos, getPerClassAspect, initialise |
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 InstanceProxyContainer(String name, ProxyAdvisorDomain instanceDomain, Advisor classAdvisor, org.jboss.metadata.spi.MetaData metaData)
Method Detail |
---|
public static InstanceProxyContainer createInstanceProxyContainer(Advisor classAdvisor, InterfaceIntroduction introduction, org.jboss.metadata.spi.MetaData metaData)
public Advisor getClassAdvisor()
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 SimpleMetaData getMetaData()
InstanceAdvisor
getMetaData
in interface InstanceAdvisor
public Domain getDomain()
InstanceAdvisor
getDomain
in interface InstanceAdvisor
public boolean hasInterceptors()
hasInterceptors
in interface InstanceAdvisor
true
if the advised instance interceptor chain contains one
or more elements.public Interceptor[] getInterceptors()
getInterceptors
in interface InstanceAdvisor
public Interceptor[] getInterceptors(Interceptor[] baseChain)
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 void insertInterceptor(Interceptor interceptor)
insertInterceptor
in interface InstanceAdvisor
interceptor
- the interceptor to be added to the instance's chain.public void removeInterceptor(String name)
removeInterceptor
in interface InstanceAdvisor
name
- name of the interceptor to be removed from the chain.Interceptor.getName()
public void appendInterceptor(Interceptor interceptor)
appendInterceptor
in interface InstanceAdvisor
interceptor
- the interceptor to be appended to the instance's chainpublic void insertInterceptorStack(String stackName)
insertInterceptorStack
in interface InstanceAdvisor
stackName
- the name that identifies the interceptor stack to be insertedpublic void removeInterceptorStack(String name)
removeInterceptorStack
in interface InstanceAdvisor
name
- the name that identifies the interceptor stack to be removedpublic void appendInterceptorStack(String stackName)
appendInterceptorStack
in interface InstanceAdvisor
stackName
- the name that identifies the interceptor stack to be appendedpublic void insertInterceptor(int index, Interceptor interceptor)
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.public void appendInterceptor(int index, Interceptor interceptor)
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.public void removeFromDomain()
public Object getInstance()
InstanceAdvisor
getInstance
in interface InstanceAdvisor
public MethodInfo getMethodInfo(long hash)
getMethodInfo
in class Advisor
hash
- a hash code that identifies uniquely a method inside the context.
MethodInfo
representing the queried method execution
joinpoint.protected Advisor getParentAdvisor()
getParentAdvisor
in class ClassProxyContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |