|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.aop.microcontainer.beans.Aspect
public class Aspect
An Aspect. This installs the AspectDefinition and AspectFactory into aop
Field Summary | |
---|---|
protected GenericBeanFactory |
advice
The beanfactory representing the advice. |
protected String |
adviceBean
The name of the beanfactory representing the advice. |
protected Map<String,Binding> |
bindings
All the AspectBindings referencing this Aspect |
protected ManagedAspectDefinition |
definition
|
protected boolean |
factory
True if aspect is an aspect factory, rather than the aspect itself |
protected org.jboss.aop.AspectManager |
manager
The AspectManager/Domain we are creating this aspect for |
protected String |
name
The name of the aspect definition. |
protected org.jboss.aop.advice.Scope |
scope
The scope of the aspect we are creating |
Constructor Summary | |
---|---|
Aspect()
|
Method Summary | |
---|---|
protected void |
addDefinitionToManager()
|
GenericBeanFactory |
getAdvice()
Get the advice. |
String |
getAdviceBean()
Get the adviceBean. |
protected ManagedAspectDefinition |
getAspectDefinitionNoDependencies()
|
protected ManagedAspectDefinition |
getAspectDefintionDependencies()
|
org.jboss.aop.advice.AspectDefinition |
getDefinition()
Get the definition. |
org.jboss.aop.AspectManager |
getManager()
Get the manager. |
String |
getName()
Get the name. |
String |
getScope()
Get the scope. |
void |
install(GenericBeanFactory factory)
|
void |
setAdvice(GenericBeanFactory advice)
Set the advice. |
void |
setAdviceBean(String adviceBean)
Set the adviceBean. |
protected void |
setDefinitionControllerContext(KernelControllerContext context)
|
void |
setElement(Element element)
|
void |
setFactory(boolean factory)
Sets if we are an aspect factory or not |
void |
setKernelControllerContext(KernelControllerContext context)
Set the controller context. |
void |
setManager(org.jboss.aop.AspectManager manager)
Set the manager. |
void |
setName(String name)
Set the name. |
void |
setScope(String scope)
Set the scope. |
void |
start()
|
void |
stop()
|
void |
uninstall()
|
void |
unsetKernelControllerContext(KernelControllerContext context)
Unset the controller context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected org.jboss.aop.AspectManager manager
protected boolean factory
protected org.jboss.aop.advice.Scope scope
protected ManagedAspectDefinition definition
protected GenericBeanFactory advice
protected String adviceBean
protected String name
protected Map<String,Binding> bindings
Constructor Detail |
---|
public Aspect()
Method Detail |
---|
public String getName()
public void setFactory(boolean factory)
factory
- true if we are a factorypublic void setName(String name)
name
- The name to set.public String getAdviceBean()
public void setAdviceBean(String adviceBean)
adviceBean
- the adviceBean.public org.jboss.aop.advice.AspectDefinition getDefinition()
public org.jboss.aop.AspectManager getManager()
public void setManager(org.jboss.aop.AspectManager manager)
manager
- The manager to set.public GenericBeanFactory getAdvice()
public void setAdvice(GenericBeanFactory advice)
advice
- The advice to set.public String getScope()
public void setScope(String scope)
scope
- The scope to set.public void setElement(Element element)
public void install(GenericBeanFactory factory) throws Exception
Exception
public void start() throws Exception
Exception
protected ManagedAspectDefinition getAspectDefinitionNoDependencies()
protected ManagedAspectDefinition getAspectDefintionDependencies()
protected void addDefinitionToManager()
public void uninstall() throws Exception
Exception
public void stop()
public void setKernelControllerContext(KernelControllerContext context) throws Exception
KernelControllerContextAware
This is invoked after construction with the controller context.
WARNING: This protocol is subject to change with the classadapter implementation.
setKernelControllerContext
in interface KernelControllerContextAware
context
- the context
Exception
- for any errorpublic void unsetKernelControllerContext(KernelControllerContext context) throws Exception
KernelControllerContextAware
This is before uninstallation with null.
WARNING: This protocol is subject to change with the classadapter implementation.
unsetKernelControllerContext
in interface KernelControllerContextAware
context
- the context
Exception
- for any errorprotected void setDefinitionControllerContext(KernelControllerContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |