org.jboss.soa.esb.listeners.config
Class JBoss4ESBDeployer

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.soa.esb.listeners.config.JBoss4ESBDeployer
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.deployment.SubDeployer, org.jboss.deployment.SubDeployerExt, org.jboss.deployment.SubDeployerExtMBean, org.jboss.deployment.SubDeployerMBean, JBoss4ESBDeployerMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class JBoss4ESBDeployer
extends org.jboss.deployment.SubDeployerSupport
implements org.jboss.deployment.SubDeployer, JBoss4ESBDeployerMBean

The JBoss AS 4 ESB deployer

Version:
$Revision: 1.1 $
Author:
Bill Burke, Magesh Kumar B

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
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
JBoss4ESBDeployer()
          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)
           
 void destroy(org.jboss.deployment.DeploymentInfo di)
           
protected  java.net.URL getDocumentUrl(org.jboss.deployment.DeploymentInfo di)
           
static boolean hasFile(org.jboss.deployment.DeploymentInfo di, java.lang.String filePath)
           
 void init(org.jboss.deployment.DeploymentInfo di)
           
 void setWarFilesDir(java.lang.String dir)
          Sets the directory that will be used for generating ESWS wars.
 void start(org.jboss.deployment.DeploymentInfo di)
           
protected  void startService()
          Get a reference to the ServiceController
 void stop(org.jboss.deployment.DeploymentInfo di)
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.deployment.SubDeployerSupport
addDeployableFiles, addDeployableJar, createService, deployUrl, destroyService, emitNotification, getEnhancedSuffixes, getRelativeOrder, getSuffixes, isDeployable, processNestedDeployments, setEnhancedSuffixes, setRelativeOrder, setSuffixes
 
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.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

JBoss4ESBDeployer

public JBoss4ESBDeployer()
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

hasFile

public static boolean hasFile(org.jboss.deployment.DeploymentInfo di,
                              java.lang.String filePath)

accepts

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

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.

startService

protected void startService()
                     throws java.lang.Exception
Get a reference to the ServiceController

Overrides:
startService in class org.jboss.deployment.SubDeployerSupport
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Overrides:
stopService in class org.jboss.deployment.SubDeployerSupport
Throws:
java.lang.Exception

getDocumentUrl

protected java.net.URL getDocumentUrl(org.jboss.deployment.DeploymentInfo di)

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.SubDeployerSupport
Throws:
org.jboss.deployment.DeploymentException

create

public void create(org.jboss.deployment.DeploymentInfo di)
            throws org.jboss.deployment.DeploymentException
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
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.SubDeployerSupport
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.SubDeployerSupport
Throws:
org.jboss.deployment.DeploymentException

destroy

public void destroy(org.jboss.deployment.DeploymentInfo di)
             throws org.jboss.deployment.DeploymentException
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
Throws:
org.jboss.deployment.DeploymentException

setWarFilesDir

public void setWarFilesDir(java.lang.String dir)
Sets the directory that will be used for generating ESWS wars.

Specified by:
setWarFilesDir in interface JBoss4ESBDeployerMBean
Parameters:
dir - The directory to be used.