|
||||||||||
| 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
public abstract class SimpleSubDeployerSupport
A simple subdeployer that deploys a managed object after parsing the deployment's xml file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jboss.deployment.SubDeployerSupport |
|---|
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.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)
A default implementation that uses the suffixes registered through either setSuffixes() or setEnhancedSuffixes(), to decide if a module is deployable by this deployer. |
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 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 abstract 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, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setEnhancedSuffixes, setRelativeOrder, setSuffixes, startService, stopService |
| Methods inherited from class org.jboss.system.ServiceMBeanSupport |
|---|
create, destroy, getDeploymentInfo, 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, 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 |
|---|
getServiceName |
| Methods inherited from interface org.jboss.deployment.SubDeployerMBean |
|---|
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 boolean accepts(DeploymentInfo di)
SubDeployerSupport
accepts in interface SubDeployeraccepts in interface SubDeployerMBeanaccepts in class SubDeployerSupportdi - the DeploymentInfo to check
public 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 interface SubDeployerMBeaninit in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurs
public void create(DeploymentInfo di)
throws DeploymentException
SubDeployerSupport
create in interface SubDeployercreate in interface SubDeployerMBeancreate in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurs
public void start(DeploymentInfo di)
throws DeploymentException
SubDeployerSupport
start in interface SubDeployerstart in interface SubDeployerMBeanstart in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurs
public void stop(DeploymentInfo di)
throws DeploymentException
SubDeployerSupport
stop in interface SubDeployerstop in interface SubDeployerMBeanstop in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurs
public void destroy(DeploymentInfo di)
throws DeploymentException
SubDeployerSupport
destroy in interface SubDeployerdestroy in interface SubDeployerMBeandestroy in class SubDeployerSupportdi - a DeploymentInfo value
DeploymentException - if an error occurspublic void postRegister(Boolean done)
postRegister in interface javax.management.MBeanRegistrationpostRegister in class ServiceMBeanSupport
protected URL getMetaDataResource(DeploymentInfo di)
throws DeploymentException
di - the deployment info
DeploymentException - for any error
protected abstract void parseMetaData(DeploymentInfo di,
URL url)
throws DeploymentException
di - the deployment infourl - the location of the meta data
DeploymentException - for any error
protected void resolveWatch(DeploymentInfo di,
URL url)
throws DeploymentException
di - the deployment infourl - the location of the meta data
DeploymentException - for any error
protected void determineObjectName(DeploymentInfo di)
throws DeploymentException
di - the deployment info
DeploymentException - for any error
protected javax.management.ObjectName registerClassLoader(DeploymentInfo di)
throws DeploymentException
di - the deployment info
DeploymentException - for any errorprotected void unregisterClassLoader(DeploymentInfo di)
di - the deployment info
protected 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 info
protected void createService(DeploymentInfo di)
throws DeploymentException
di - the deployment info
DeploymentException - for any error
protected void startService(DeploymentInfo di)
throws DeploymentException
di - the deployment info
DeploymentException - for any errorprotected void stopService(DeploymentInfo di)
di - the deployment info
protected 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 | |||||||||