org.jboss.aop.deployment
Class AspectDeployer

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.deployment.SubDeployerSupport
              extended by org.jboss.aop.deployment.AspectDeployer
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, AspectDeployerMBean, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerExt, org.jboss.deployment.SubDeployerExtMBean, org.jboss.deployment.SubDeployerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
Direct Known Subclasses:
AspectDeployer32, AspectDeployer40

public class AspectDeployer
extends org.jboss.deployment.SubDeployerSupport
implements org.jboss.deployment.SubDeployer, AspectDeployerMBean

Deployer for Aspects

Version:
$Revision: 57186 $
Author:
Bill Burke, Dimitris Andreadis

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.SubDeployerSupport.ClassConfiguration
 
Field Summary
 
Fields inherited from class org.jboss.deployment.SubDeployerSupport
CONFIGURATION, enhancedSuffixes, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.deployment.SubDeployer
CREATE_NOTIFICATION, DESTROY_NOTIFICATION, INIT_NOTIFICATION, RELATIVE_ORDER_100, RELATIVE_ORDER_200, RELATIVE_ORDER_300, RELATIVE_ORDER_400, RELATIVE_ORDER_500, RELATIVE_ORDER_600, RELATIVE_ORDER_700, RELATIVE_ORDER_800, RELATIVE_ORDER_900, START_NOTIFICATION, STOP_NOTIFICATION
 
Fields inherited from interface org.jboss.aop.deployment.AspectDeployerMBean
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
AspectDeployer()
          Default CTOR used to set default values to the Suffixes and RelativeOrder attributes.
 
Method Summary
 boolean accepts(org.jboss.deployment.DeploymentInfo di)
          Returns true if this deployer can deploy the given DeploymentInfo.
 void create(org.jboss.deployment.DeploymentInfo di)
          Describe create method here.
 void destroy(org.jboss.deployment.DeploymentInfo di)
          Describe destroy method here.
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void init(org.jboss.deployment.DeploymentInfo di)
          Describe init method here.
protected  void initializeMainDeployer()
          Set the suffixes and relative order attributes.
 void start(org.jboss.deployment.DeploymentInfo di)
          The start method starts all the mbeans in this DeploymentInfo..
protected  void startService()
          The startService method gets the mbeanProxies for MainDeployer and ServiceController, used elsewhere.
 void stop(org.jboss.deployment.DeploymentInfo di)
          Undeploys the package at the url string specified.
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setEnhancedSuffixes, setRelativeOrder, setSuffixes, stopService
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, destroy, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.deployment.SubDeployer
getRelativeOrder, getServiceName, getSuffixes
 
Methods inherited from interface org.jboss.deployment.SubDeployerMBean
getRelativeOrder, getServiceName, getSuffixes
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

AspectDeployer

public AspectDeployer()
Default CTOR used to set default values to the Suffixes and RelativeOrder attributes. Those are read at subdeployer registration time by the MainDeployer to alter its SuffixOrder.

Method Detail

initializeMainDeployer

protected void initializeMainDeployer()
Set the suffixes and relative order attributes. Those are read at subdeployer registration time by the MainDeployer to update its SuffixOrder list.


accepts

public boolean accepts(org.jboss.deployment.DeploymentInfo di)
Returns true if this deployer can deploy the given DeploymentInfo.

Specified by:
accepts in interface AspectDeployerMBean
Specified by:
accepts in interface org.jboss.deployment.SubDeployer
Specified by:
accepts in interface org.jboss.deployment.SubDeployerMBean
Overrides:
accepts in class org.jboss.deployment.SubDeployerSupport
Returns:
True if this deployer can deploy the given DeploymentInfo.

init

public void init(org.jboss.deployment.DeploymentInfo di)
          throws org.jboss.deployment.DeploymentException
Describe init method here.

Specified by:
init in interface AspectDeployerMBean
Specified by:
init in interface org.jboss.deployment.SubDeployer
Specified by:
init in interface org.jboss.deployment.SubDeployerMBean
Overrides:
init in class org.jboss.deployment.SubDeployerSupport
Parameters:
di - a DeploymentInfo value
Throws:
org.jboss.deployment.DeploymentException - if an error occurs

create

public void create(org.jboss.deployment.DeploymentInfo di)
            throws org.jboss.deployment.DeploymentException
Describe create method here.

Specified by:
create in interface AspectDeployerMBean
Specified by:
create in interface org.jboss.deployment.SubDeployer
Specified by:
create in interface org.jboss.deployment.SubDeployerMBean
Overrides:
create in class org.jboss.deployment.SubDeployerSupport
Parameters:
di - a DeploymentInfo value
Throws:
org.jboss.deployment.DeploymentException - if an error occurs

start

public void start(org.jboss.deployment.DeploymentInfo di)
           throws org.jboss.deployment.DeploymentException
The start method starts all the mbeans in this DeploymentInfo..

Specified by:
start in interface AspectDeployerMBean
Specified by:
start in interface org.jboss.deployment.SubDeployer
Specified by:
start in interface org.jboss.deployment.SubDeployerMBean
Overrides:
start in class org.jboss.deployment.SubDeployerSupport
Parameters:
di - a DeploymentInfo value
Throws:
org.jboss.deployment.DeploymentException - if an error occurs

stop

public void stop(org.jboss.deployment.DeploymentInfo di)
Undeploys the package at the url string specified. This will: Undeploy packages depending on this one. Stop, destroy, and unregister all the specified mbeans Unload this package and packages this package deployed via the classpath tag. Keep track of packages depending on this one that we undeployed so that they can be redeployed should this one be redeployed.

Specified by:
stop in interface AspectDeployerMBean
Specified by:
stop in interface org.jboss.deployment.SubDeployer
Specified by:
stop in interface org.jboss.deployment.SubDeployerMBean
Overrides:
stop in class org.jboss.deployment.SubDeployerSupport
Parameters:
di - the DeploymentInfo value to stop.

destroy

public void destroy(org.jboss.deployment.DeploymentInfo di)
Describe destroy method here.

Specified by:
destroy in interface AspectDeployerMBean
Specified by:
destroy in interface org.jboss.deployment.SubDeployer
Specified by:
destroy in interface org.jboss.deployment.SubDeployerMBean
Overrides:
destroy in class org.jboss.deployment.SubDeployerSupport
Parameters:
di - a DeploymentInfo value

startService

protected void startService()
                     throws Exception
The startService method gets the mbeanProxies for MainDeployer and ServiceController, used elsewhere.

Overrides:
startService in class org.jboss.deployment.SubDeployerSupport
Throws:
Exception - if an error occurs

getObjectName

protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
Overrides:
getObjectName in class org.jboss.system.ServiceMBeanSupport
Throws:
javax.management.MalformedObjectNameException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.