org.jboss.soa.esb.listeners.deployers.mc
Class EsbDeployment

java.lang.Object
  extended by org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment
All Implemented Interfaces:
EsbDeploymentMBean

public class EsbDeployment
extends java.lang.Object
implements EsbDeploymentMBean

EsbDeployment for the Microcontainer.

Microcontainer will call the lifecycle methods:

  • create will create the ESB deployment.
  • start will start the ESB deployment.
  • stop will stop the ESB deployment.
  • destroy will destroy the ESB deployment.

    Author:
    Daniel Bevenius

    Constructor Summary
    EsbDeployment(java.lang.String config, java.lang.String deploymentName, java.lang.String mbeanName)
               
     
    Method Summary
     void create()
               
     void destroy()
               
     ManagedLifecycleController getController()
               
     java.lang.String getDeploymentName()
               
     java.lang.String getJbossEsbXml()
              Gets the jboss-esb.xml configuration.
     java.lang.String getJbossEsbXmlAsHtml()
              Gets the jboss-esb.xml configuration as html.
     java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> getPublishers()
               
     void setDeploymentName(java.lang.String deploymentName)
               
     void setPublishers(java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> publishers)
               
     void setServiceContracts(java.util.List<ServiceContract> serviceContracts)
               
     void start()
              Start a deployment.
     void stop()
              Stop a deployment.
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    EsbDeployment

    public EsbDeployment(java.lang.String config,
                         java.lang.String deploymentName,
                         java.lang.String mbeanName)
                  throws java.lang.Exception
    Throws:
    java.lang.Exception
    Method Detail

    getJbossEsbXml

    public java.lang.String getJbossEsbXml()
    Description copied from interface: EsbDeploymentMBean
    Gets the jboss-esb.xml configuration.

    Specified by:
    getJbossEsbXml in interface EsbDeploymentMBean
    Returns:
    String The jboss-esb.xml files content.

    getJbossEsbXmlAsHtml

    public java.lang.String getJbossEsbXmlAsHtml()
    Description copied from interface: EsbDeploymentMBean
    Gets the jboss-esb.xml configuration as html.

    Specified by:
    getJbossEsbXmlAsHtml in interface EsbDeploymentMBean
    Returns:
    String The jboss-esb.xml files content as html.

    setPublishers

    public void setPublishers(java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> publishers)

    setServiceContracts

    public void setServiceContracts(java.util.List<ServiceContract> serviceContracts)

    getController

    public ManagedLifecycleController getController()

    getDeploymentName

    public java.lang.String getDeploymentName()

    setDeploymentName

    public void setDeploymentName(java.lang.String deploymentName)

    getPublishers

    public java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> getPublishers()

    create

    public void create()

    start

    public void start()
               throws java.lang.Exception
    Description copied from interface: EsbDeploymentMBean
    Start a deployment.

    Specified by:
    start in interface EsbDeploymentMBean
    Throws:
    java.lang.Exception - If an exception occurs while starting.

    stop

    public void stop()
              throws java.lang.Exception
    Description copied from interface: EsbDeploymentMBean
    Stop a deployment.

    Specified by:
    stop in interface EsbDeploymentMBean
    Throws:
    java.lang.Exception - If an exeption occurs while stoping.

    destroy

    public void destroy()
                 throws java.lang.Exception
    Throws:
    java.lang.Exception