|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aspects.concurrent.MutexAspectFactory
public class MutexAspectFactory
comment
| Constructor Summary | |
|---|---|
MutexAspectFactory()
|
|
| Method Summary | |
|---|---|
Object |
createPerClass(Advisor advisor)
Creates an aspect with scope value Scope.PER_CLASS. |
Object |
createPerInstance(Advisor advisor,
InstanceAdvisor instanceAdvisor)
Creates an aspect with scope value Scope.PER_INSTANCE. |
Object |
createPerJoinpoint(Advisor advisor,
InstanceAdvisor instanceAdvisor,
Joinpoint jp)
Creates an aspect with scope value or Scope.PER_JOINPOINT. |
Object |
createPerJoinpoint(Advisor advisor,
Joinpoint jp)
Creates an aspect with scope value Scope.PER_CLASS_JOINPOINT or
Scope.PER_JOINPOINT. |
Object |
createPerVM()
Creates an aspect with scope value Scope.PER_VM. |
String |
getName()
The name that identifies the aspect in its domain. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MutexAspectFactory()
| Method Detail |
|---|
public Object createPerVM()
AspectFactoryScope.PER_VM.
createPerVM in interface AspectFactorynull, the aspect
represented by this factory is ignored, resulting in no interception.public Object createPerClass(Advisor advisor)
AspectFactoryScope.PER_CLASS.
createPerClass in interface AspectFactoryadvisor - manages all the interceptions that should occur during execution
of a specific class
advisor. If
null, the aspect represented by this factory is ignored,
resulting in no interception of the joinpoints contained in the
referred class.Advisor.getClazz()
public Object createPerInstance(Advisor advisor,
InstanceAdvisor instanceAdvisor)
AspectFactoryScope.PER_INSTANCE.
createPerInstance in interface AspectFactoryadvisor - manages all the interceptions that should occur during
execution of a specific classinstanceAdvisor - manages all the interceptions that should occur during
execution of a specific instance. The instance it
manages is an object of the class managed by
advisor
instanceAdvisor. If null, the aspect
represented by this factory is ignored, resulting in no
interception of the joinpoints contained in the referred
instance.Advisor.getClazz(),
InstanceAdvisor.getInstance()
public Object createPerJoinpoint(Advisor advisor,
Joinpoint jp)
AspectFactoryScope.PER_CLASS_JOINPOINT or
Scope.PER_JOINPOINT.
PER_CLASS_JOINPOINT, this method will always
be invoked to create the aspect instance. On the other hand, if the scope value
is PER_JOINPOINT, this method is called only if the joinpoint
to be intercepted is in a static context (like a static method, a static field
access, or a constructor execution).
createPerJoinpoint in interface AspectFactoryadvisor - manages all the interceptions that should occur during
execution of a specific classjp - the joinpoint to be intercepted by the created instance.
This joinpoint is contained in the class managed by
advisor
jp. If null, the aspect represented by this
factory is ignored, resulting in no interception of jp.Advisor.getClazz(),
Joinpoint
public Object createPerJoinpoint(Advisor advisor,
InstanceAdvisor instanceAdvisor,
Joinpoint jp)
AspectFactoryScope.PER_JOINPOINT.
createPerJoinpoint in interface AspectFactoryadvisor - manages all the interceptions that should occur
during execution of a specific classinstanceAdvisor - manages all the interceptions that should occur during
execution of a specific instance. The instance it
manages is an object of the class managed by
advisorjp - the joinpoint to be intercepted by the created instance.
This joinpoint is contained in the class managed by
advisor
jp when it happens on the instance
managed by instanceAdvisor. If null, the
aspect represented by this factory is ignored, resulting
in no interception of jp when it is executed in
the context of the referred instance.Advisor.getClazz(),
InstanceAdvisor.getInstance(),
Joinpointpublic String getName()
AspectFactory
getName in interface AspectFactoryDomain
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||