org.nuxeo.runtime.jboss.deployment
Class NuxeoDeployer
java.lang.Object
org.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.deployment.SubDeployerSupport
org.jboss.deployment.EARDeployer
org.nuxeo.runtime.jboss.deployment.NuxeoDeployer
- All Implemented Interfaces:
- MBeanRegistration, NotificationBroadcaster, NotificationEmitter, org.jboss.deployment.EARDeployerMBean, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerExt, org.jboss.deployment.SubDeployerExtMBean, org.jboss.deployment.SubDeployerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean, NuxeoDeployerMBean
public class NuxeoDeployer
- extends org.jboss.deployment.EARDeployer
- implements NuxeoDeployerMBean
- Author:
- Bogdan Stefanescu
| Nested classes/interfaces inherited from class org.jboss.deployment.SubDeployerSupport |
org.jboss.deployment.SubDeployerSupport.ClassConfiguration |
| 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.EARDeployerMBean |
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 |
| 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 |
| Methods inherited from class org.jboss.deployment.EARDeployer |
create, destroy, initLoaderRepository, isCallByValue, isDeployable, isIsolated, processNestedDeployments, setCallByValue, setIsolated, startService |
| Methods inherited from class org.jboss.deployment.SubDeployerSupport |
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, setEnhancedSuffixes, setRelativeOrder, setSuffixes, 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, 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.EARDeployerMBean |
isCallByValue, isIsolated, setCallByValue, setIsolated |
| Methods inherited from interface org.jboss.deployment.SubDeployerExtMBean |
getEnhancedSuffixes, setEnhancedSuffixes |
| Methods inherited from interface org.jboss.deployment.SubDeployerMBean |
create, destroy, 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 |
| Methods inherited from interface org.jboss.deployment.SubDeployer |
getServiceName |
LIB_DIR
public static final String LIB_DIR
- See Also:
- Constant Field Values
CONFIG_DIR
public static final String CONFIG_DIR
- See Also:
- Constant Field Values
DS_DIR
public static final String DS_DIR
- See Also:
- Constant Field Values
MBEANS_DIR
public static final String MBEANS_DIR
- See Also:
- Constant Field Values
controller
protected final org.jboss.system.ServiceControllerMBean controller
NuxeoDeployer
public NuxeoDeployer()
- Default CTOR.
setDebug
public void setDebug(boolean value)
- Specified by:
setDebug in interface NuxeoDeployerMBean
isDebug
public boolean isDebug()
- Specified by:
isDebug in interface NuxeoDeployerMBean
redeploy
public void redeploy(String shortName)
throws org.jboss.deployment.DeploymentException
- Specified by:
redeploy in interface NuxeoDeployerMBean
- Throws:
org.jboss.deployment.DeploymentException
listDeployments
public String listDeployments()
- Specified by:
listDeployments in interface NuxeoDeployerMBean
getDeployments
public String[] getDeployments()
- Specified by:
getDeployments in interface NuxeoDeployerMBean
accepts
public boolean accepts(org.jboss.deployment.DeploymentInfo sdi)
- 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
init
public void init(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- 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.EARDeployer
- Throws:
org.jboss.deployment.DeploymentException
start
public void start(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- 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.EARDeployer
- Throws:
org.jboss.deployment.DeploymentException
stop
public void stop(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- 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.EARDeployer
- Throws:
org.jboss.deployment.DeploymentException
processNestedDataSources
protected Collection<String> processNestedDataSources(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Data sources must be deployed first.
- Parameters:
di -
- Throws:
org.jboss.deployment.DeploymentException
processNestedMBeans
protected Collection<String> processNestedMBeans(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Deploy the JBoss mbeans used to confiugre specific JBoss
services like topics, etc.
MBeans are deployed before any other bundle.
- Parameters:
di -
- Returns:
-
- Throws:
org.jboss.deployment.DeploymentException
processStaticLibraries
protected Collection<String> processStaticLibraries(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
processConfig
protected Collection<String> processConfig(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
_processNestedDeployments
protected void _processNestedDeployments(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
canPreprocess
public static boolean canPreprocess(org.jboss.deployment.DeploymentInfo di)
hasContainerDescriptor
public static boolean hasContainerDescriptor(org.jboss.deployment.DeploymentInfo di)
isPreprocessingEnabled
public final boolean isPreprocessingEnabled(org.jboss.deployment.DeploymentInfo di)
getEarDirectory
protected static File getEarDirectory(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
getPredeployStatusFile
protected static File getPredeployStatusFile(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
isFirstRun
protected static boolean isFirstRun(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
writeStatusFile
protected static void writeStatusFile(org.jboss.deployment.DeploymentInfo di)
throws org.jboss.deployment.DeploymentException
- Throws:
org.jboss.deployment.DeploymentException
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.