|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.transform.inlining.deployer.Deployer
public class Deployer
Manages deployment and undeployment of aspects. Aspects can be deployed and undeployed into a running system(s).
Supports annotation defined and XML defined aspects.
Constructor Summary | |
---|---|
Deployer()
|
Method Summary | |
---|---|
static DeploymentHandle |
deploy(Class aspect)
Deploys an annotation defined aspect. |
static DeploymentHandle |
deploy(Class aspect,
ClassLoader deployLoader)
Deploys an annotation defined aspect. |
static DeploymentHandle |
deploy(Class aspect,
DeploymentScope deploymentScope)
Deploys an annotation defined aspect in the scope defined by the prepared pointcut. |
static DeploymentHandle |
deploy(Class aspect,
DeploymentScope deploymentScope,
ClassLoader deployLoader)
TODO allow deployment in other systems than virtual system? |
static DeploymentHandle |
deploy(Class aspect,
String xmlDef)
Deploys an XML defined aspect in the scope defined by the prepared pointcut. |
static DeploymentHandle |
deploy(Class aspect,
String xmlDef,
ClassLoader deployLoader)
Deploys an XML defined aspect in the scope defined by the prepared pointcut. |
static DeploymentHandle |
deploy(Class aspect,
String xmlDef,
DeploymentScope deploymentScope)
Deploys an XML defined aspect in the scope defined by the prepared pointcut. |
static DeploymentHandle |
deploy(Class aspect,
String xmlDef,
DeploymentScope deploymentScope,
ClassLoader deployLoader)
TODO allow deployment in other systems than virtual system? |
static DeploymentHandle |
deploy(String aspectClassName)
Deploys an annotation defined aspect. |
static DeploymentHandle |
deploy(String aspectClassName,
ClassLoader deployLoader)
Deploys an annotation defined aspect. |
static DeploymentHandle |
deploy(String aspectClassName,
DeploymentScope deploymentScope)
Deploys an annotation defined aspect in the scope defined by the prepared pointcut. |
static DeploymentHandle |
deploy(String className,
DeploymentScope deploymentScope,
ClassLoader deployLoader)
Deploys an annotation defined aspect in the scope defined by the prepared pointcut. |
static void |
undeploy(Class aspect)
Undeploys an aspect from the same loader that has loaded the class. |
static void |
undeploy(Class aspect,
ClassLoader loader)
Undeploys an aspect from a specific class loader. |
static void |
undeploy(DeploymentHandle deploymentHandle)
Undeploys an aspect in the same way that it has been deployed in in the previous deploy event defined by the deployment handle. |
static void |
undeploy(String className,
ClassLoader loader)
Undeploys an aspect from a specific class loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Deployer()
Method Detail |
---|
public static DeploymentHandle deploy(Class aspect)
deploy(final Class aspect, final DeploymentScope deploymentScope)
aspect
- the aspect class
public static DeploymentHandle deploy(String aspectClassName)
deploy(final Class aspect, final DeploymentScope preparedPointcut)
aspectClassName
- the aspect class name
public static DeploymentHandle deploy(Class aspect, ClassLoader deployLoader)
deploy(final Class aspect, final DeploymentScope preparedPointcut)
aspect
- the aspect classdeployLoader
-
public static DeploymentHandle deploy(String aspectClassName, ClassLoader deployLoader)
deploy(final Class aspect, final DeploymentScope preparedPointcut)
aspectClassName
- the aspect class namedeployLoader
-
public static DeploymentHandle deploy(Class aspect, DeploymentScope deploymentScope)
aspect
- the aspect classdeploymentScope
-
public static DeploymentHandle deploy(String aspectClassName, DeploymentScope deploymentScope)
aspectClassName
- the aspect class namedeploymentScope
-
public static DeploymentHandle deploy(Class aspect, DeploymentScope deploymentScope, ClassLoader deployLoader)
aspect
- the aspect classdeployLoader
- the loader to deploy the aspect indeploymentScope
- the prepared pointcut
public static DeploymentHandle deploy(String className, DeploymentScope deploymentScope, ClassLoader deployLoader)
className
- deploymentScope
- deployLoader
-
public static DeploymentHandle deploy(Class aspect, String xmlDef)
aspect
- the aspect classxmlDef
-
public static DeploymentHandle deploy(Class aspect, String xmlDef, DeploymentScope deploymentScope)
aspect
- the aspect classxmlDef
- deploymentScope
-
public static DeploymentHandle deploy(Class aspect, String xmlDef, ClassLoader deployLoader)
aspect
- the aspect classxmlDef
- deployLoader
-
public static DeploymentHandle deploy(Class aspect, String xmlDef, DeploymentScope deploymentScope, ClassLoader deployLoader)
aspect
- the aspect classdeploymentScope
- xmlDef
- deployLoader
-
public static void undeploy(Class aspect)
aspect
- the aspect classpublic static void undeploy(Class aspect, ClassLoader loader)
aspect
- the aspect classloader
- the loader that you want to undeploy the aspect frompublic static void undeploy(String className, ClassLoader loader)
className
- the aspect class nameloader
- the loader that you want to undeploy the aspect frompublic static void undeploy(DeploymentHandle deploymentHandle)
deploymentHandle
- the handle to the previous deployment event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |