|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.deployment.SubDeployerSupport (src)
org.jboss.deployment.SimpleSubDeployerSupport
A simple subdeployer that deploys a managed object after parsing the deployment's xml file.
Nested Class Summary |
Nested classes inherited from class org.jboss.deployment.SubDeployerSupport (src) |
SubDeployerSupport.ClassConfiguration (src) |
Field Summary |
Fields inherited from class org.jboss.deployment.SubDeployerSupport (src) |
CONFIGURATION, mainDeployer, nativePrefix, nativeSuffix, relativeOrder, suffixes, tempDeployDir |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
log, server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.deployment.SubDeployer (src) |
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.system.ServiceMBean (src) |
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED |
Constructor Summary | |
SimpleSubDeployerSupport()
|
Method Summary | |
boolean |
accepts(DeploymentInfo (src) di)
The accepts method is called by MainDeployer to
determine which deployer is suitable for a DeploymentInfo. |
void |
create(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'create' logic. |
protected void |
createService(DeploymentInfo (src) di)
Do the create lifecyle for the deployment |
void |
destroy(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'destroy' logic. |
protected void |
destroyService(DeploymentInfo (src) di)
Do the destroy lifecyle for the deployment |
protected void |
determineObjectName(DeploymentInfo (src) di)
Determine the object name |
abstract java.lang.String |
getDeploymentClass()
Get the deployment class |
abstract java.lang.String |
getExtension()
Get the package extension for this deployment |
protected java.net.URL |
getMetaDataResource(DeploymentInfo (src) di)
Get the url of the meta data resource |
abstract java.lang.String |
getMetaDataURL()
Get the metadata url |
abstract ObjectModelFactory (src) |
getObjectModelFactory()
Get the object model factory |
abstract java.lang.String |
getObjectName(DeploymentInfo (src) di)
Get the object name for this deployment |
void |
init(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'init' logic. |
protected void |
parseMetaData(DeploymentInfo (src) di,
java.net.URL url)
Parse the meta data |
void |
postRegister(java.lang.Boolean done)
This method is called by the MBeanServer after registration takes place or when registration fails. |
protected ObjectName (src) |
registerClassLoader(DeploymentInfo (src) di)
Register the UCL classloader |
protected void |
registerDeployment(DeploymentInfo (src) di,
ObjectName (src) uclName)
Register the deployment |
protected void |
resolveWatch(DeploymentInfo (src) di,
java.net.URL url)
Resolve the watch url |
void |
start(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'start' logic. |
protected void |
startService(DeploymentInfo (src) di)
Do the start lifecyle for the deployment |
void |
stop(DeploymentInfo (src) di)
Sub-classes should override this method to provide custom 'stop' logic. |
protected void |
stopService(DeploymentInfo (src) di)
Do the stop lifecyle for the deployment |
protected void |
unregisterClassLoader(DeploymentInfo (src) di)
Unregister the UCL classloader |
protected void |
unregisterDeployment(DeploymentInfo (src) di)
Unregister the deployment |
Methods inherited from class org.jboss.deployment.SubDeployerSupport (src) |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes, startService, stopService |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
create, destroy, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, preDeregister, preRegister, start, stop |
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src) |
addNotificationListener, getNotificationInfo, handleNotification, 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 (src) |
getServiceName |
Constructor Detail |
public SimpleSubDeployerSupport()
Method Detail |
public abstract java.lang.String getExtension()
public abstract java.lang.String getMetaDataURL()
public abstract java.lang.String getObjectName(DeploymentInfo (src) di) throws DeploymentException (src)
di
- the deployment info
DeploymentException (src)
public abstract java.lang.String getDeploymentClass()
public abstract ObjectModelFactory (src) getObjectModelFactory()
public boolean accepts(DeploymentInfo (src) di)
SubDeployer (src)
accepts
method is called by MainDeployer to
determine which deployer is suitable for a DeploymentInfo.
di
- a DeploymentInfo
value
boolean
valuepublic void init(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
This method calls the processNestedDeployments(di) method and then issues a JMX notification of type SubDeployer.INIT_NOTIFICATION. This behaviour can overridden by concrete sub-classes. If further initialization needs to be done, and you wish to preserve the functionality, be sure to call super.init(di) at the end of your implementation.
init
in interface SubDeployer (src)
init
in class SubDeployerSupport (src)
DeploymentException (src)
public void create(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
create
in interface SubDeployer (src)
create
in class SubDeployerSupport (src)
DeploymentException (src)
public void start(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
start
in interface SubDeployer (src)
start
in class SubDeployerSupport (src)
DeploymentException (src)
public void stop(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
stop
in interface SubDeployer (src)
stop
in class SubDeployerSupport (src)
DeploymentException (src)
public void destroy(DeploymentInfo (src) di) throws DeploymentException (src)
SubDeployerSupport (src)
destroy
in interface SubDeployer (src)
destroy
in class SubDeployerSupport (src)
DeploymentException (src)
public void postRegister(java.lang.Boolean done)
MBeanRegistration (src)
postRegister
in interface MBeanRegistration (src)
postRegister
in class ServiceMBeanSupport (src)
protected java.net.URL getMetaDataResource(DeploymentInfo (src) di) throws DeploymentException (src)
di
- the deployment info
DeploymentException (src)
- for any errorprotected void parseMetaData(DeploymentInfo (src) di, java.net.URL url) throws DeploymentException (src)
di
- the deployment infourl
- the location of the meta data
DeploymentException (src)
- for any errorprotected void resolveWatch(DeploymentInfo (src) di, java.net.URL url) throws DeploymentException (src)
di
- the deployment infourl
- the location of the meta data
DeploymentException (src)
- for any errorprotected void determineObjectName(DeploymentInfo (src) di) throws DeploymentException (src)
di
- the deployment info
DeploymentException (src)
- for any errorprotected ObjectName (src) registerClassLoader(DeploymentInfo (src) di) throws DeploymentException (src)
di
- the deployment info
DeploymentException (src)
- for any errorprotected void unregisterClassLoader(DeploymentInfo (src) di)
di
- the deployment infoprotected void registerDeployment(DeploymentInfo (src) di, ObjectName (src) uclName) throws DeploymentException (src)
di
- the deployment infouclName
- the object name of the classloader
DeploymentException (src)
- for any errorprotected void unregisterDeployment(DeploymentInfo (src) di)
di
- the deployment infoprotected void createService(DeploymentInfo (src) di) throws DeploymentException (src)
di
- the deployment info
DeploymentException (src)
- for any errorprotected void startService(DeploymentInfo (src) di) throws DeploymentException (src)
di
- the deployment info
DeploymentException (src)
- for any errorprotected void stopService(DeploymentInfo (src) di)
di
- the deployment infoprotected void destroyService(DeploymentInfo (src) di) throws DeploymentException (src)
di
- the deployment info
DeploymentException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |