|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
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 |
SubDeployerSupport.ClassConfiguration |
| Field Summary |
| Fields inherited from class org.jboss.deployment.SubDeployerSupport |
CONFIGURATION, 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.system.ServiceMBean |
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 di)
The accepts method is called by MainDeployer to
determine which deployer is suitable for a DeploymentInfo. |
void |
create(DeploymentInfo di)
Sub-classes should override this method to provide custom 'create' logic. |
protected void |
createService(DeploymentInfo di)
Do the create lifecyle for the deployment |
void |
destroy(DeploymentInfo di)
Sub-classes should override this method to provide custom 'destroy' logic. |
protected void |
destroyService(DeploymentInfo di)
Do the destroy lifecyle for the deployment |
protected void |
determineObjectName(DeploymentInfo di)
Determine the object name |
abstract String |
getDeploymentClass()
Get the deployment class |
abstract String |
getExtension()
Get the package extension for this deployment |
protected URL |
getMetaDataResource(DeploymentInfo di)
Get the url of the meta data resource |
abstract String |
getMetaDataURL()
Get the metadata url |
abstract org.jboss.xml.binding.ObjectModelFactory |
getObjectModelFactory()
Get the object model factory |
abstract String |
getObjectName(DeploymentInfo di)
Get the object name for this deployment |
void |
init(DeploymentInfo di)
Sub-classes should override this method to provide custom 'init' logic. |
protected void |
parseMetaData(DeploymentInfo di,
URL url)
Parse the meta data |
void |
postRegister(Boolean done)
|
protected javax.management.ObjectName |
registerClassLoader(DeploymentInfo di)
Register the UCL classloader |
protected void |
registerDeployment(DeploymentInfo di,
javax.management.ObjectName uclName)
Register the deployment |
protected void |
resolveWatch(DeploymentInfo di,
URL url)
Resolve the watch url |
void |
start(DeploymentInfo di)
Sub-classes should override this method to provide custom 'start' logic. |
protected void |
startService(DeploymentInfo di)
Do the start lifecyle for the deployment |
void |
stop(DeploymentInfo di)
Sub-classes should override this method to provide custom 'stop' logic. |
protected void |
stopService(DeploymentInfo di)
Do the stop lifecyle for the deployment |
protected void |
unregisterClassLoader(DeploymentInfo di)
Unregister the UCL classloader |
protected void |
unregisterDeployment(DeploymentInfo di)
Unregister the deployment |
| Methods inherited from class org.jboss.deployment.SubDeployerSupport |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setRelativeOrder, setSuffixes, startService, stopService |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
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 |
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 |
getServiceName |
| 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 |
public SimpleSubDeployerSupport()
| Method Detail |
public abstract String getExtension()
public abstract String getMetaDataURL()
public abstract String getObjectName(DeploymentInfo di) throws DeploymentException
di - the deployment info
DeploymentExceptionpublic abstract String getDeploymentClass()
public abstract org.jboss.xml.binding.ObjectModelFactory getObjectModelFactory()
public boolean accepts(DeploymentInfo di)
SubDeployeraccepts method is called by MainDeployer to
determine which deployer is suitable for a DeploymentInfo.
di - a DeploymentInfo value
boolean valuepublic void init(DeploymentInfo di) throws DeploymentException
SubDeployerSupportThis 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 SubDeployerinit in class SubDeployerSupportDeploymentExceptionpublic void create(DeploymentInfo di) throws DeploymentException
SubDeployerSupport
create in interface SubDeployercreate in class SubDeployerSupportDeploymentExceptionpublic void start(DeploymentInfo di) throws DeploymentException
SubDeployerSupport
start in interface SubDeployerstart in class SubDeployerSupportDeploymentExceptionpublic void stop(DeploymentInfo di) throws DeploymentException
SubDeployerSupport
stop in interface SubDeployerstop in class SubDeployerSupportDeploymentExceptionpublic void destroy(DeploymentInfo di) throws DeploymentException
SubDeployerSupport
destroy in interface SubDeployerdestroy in class SubDeployerSupportDeploymentExceptionpublic void postRegister(Boolean done)
postRegister in interface javax.management.MBeanRegistrationpostRegister in class ServiceMBeanSupportprotected URL getMetaDataResource(DeploymentInfo di) throws DeploymentException
di - the deployment info
DeploymentException - for any errorprotected void parseMetaData(DeploymentInfo di, URL url) throws DeploymentException
di - the deployment infourl - the location of the meta data
DeploymentException - for any errorprotected void resolveWatch(DeploymentInfo di, URL url) throws DeploymentException
di - the deployment infourl - the location of the meta data
DeploymentException - for any errorprotected void determineObjectName(DeploymentInfo di) throws DeploymentException
di - the deployment info
DeploymentException - for any errorprotected javax.management.ObjectName registerClassLoader(DeploymentInfo di) throws DeploymentException
di - the deployment info
DeploymentException - for any errorprotected void unregisterClassLoader(DeploymentInfo di)
di - the deployment infoprotected void registerDeployment(DeploymentInfo di, javax.management.ObjectName uclName) throws DeploymentException
di - the deployment infouclName - the object name of the classloader
DeploymentException - for any errorprotected void unregisterDeployment(DeploymentInfo di)
di - the deployment infoprotected void createService(DeploymentInfo di) throws DeploymentException
di - the deployment info
DeploymentException - for any errorprotected void startService(DeploymentInfo di) throws DeploymentException
di - the deployment info
DeploymentException - for any errorprotected void stopService(DeploymentInfo di)
di - the deployment infoprotected void destroyService(DeploymentInfo di) throws DeploymentException
di - the deployment info
DeploymentException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||