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

java.lang.Object
  extended by org.jboss.soa.esb.listeners.deployers.mc.EsbMetaData
All Implemented Interfaces:
java.io.Serializable

public class EsbMetaData
extends java.lang.Object
implements java.io.Serializable

Metadata for an ESB deployment.

Author:
Daniel Bevenius, Magesh Kumar B
See Also:
Serialized Form

Constructor Summary
EsbMetaData(org.jboss.virtual.VirtualFile file, java.lang.String archiveName, java.lang.String deploymentName, java.util.Set<javax.management.ObjectName> dependencies)
          Sole constructor.
 
Method Summary
 java.lang.String getArchiveName()
          Gets the name of the archive that this metadata came from.
 java.util.Set<javax.management.ObjectName> getDependencies()
          Gets a set of dependencies of this deployment.
 java.lang.String getDeploymentName()
          The deployment name is the name of the .esb archive without the .esb suffix.
 org.jboss.virtual.VirtualFile getFile()
          Gets the The virtual file.
 ModelAdapter getModel()
          The model adapter for the configuration.
 java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> getPublishers()
          Gets the publishers for this deployment.
 java.util.List<org.jboss.internal.soa.esb.listeners.war.Servlet> getServlets()
          Gets the servlets for this deployment.
 void setModel(ModelAdapter model)
          Set the model adapter for the configuration.
 void setPublishers(java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> publishers)
          Sets the publishers for this deployment.
 void setServlets(java.util.List<org.jboss.internal.soa.esb.listeners.war.Servlet> servlets)
          Sets the servlets for this deployment.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EsbMetaData

public EsbMetaData(org.jboss.virtual.VirtualFile file,
                   java.lang.String archiveName,
                   java.lang.String deploymentName,
                   java.util.Set<javax.management.ObjectName> dependencies)
Sole constructor.

Parameters:
file - The virtual file. Can point to a file or a directory which will be searched..
archiveName - The name of the .esb archive from which this deployment comes from.
dependencies - Dependencies of this deployment. This might be object names or simply bean names.
Method Detail

getArchiveName

public final java.lang.String getArchiveName()
Gets the name of the archive that this metadata came from.

Returns:
String The name of the archive that this metadata came from.

getFile

public org.jboss.virtual.VirtualFile getFile()
Gets the The virtual file. This is a file path

Returns:
String The esb xml configuration.

getDependencies

public java.util.Set<javax.management.ObjectName> getDependencies()
Gets a set of dependencies of this deployment.

Returns:
Set A set of object names that the deployment represented by this instance depends on.

getDeploymentName

public java.lang.String getDeploymentName()
The deployment name is the name of the .esb archive without the .esb suffix.

Returns:
String The name of the deployment. This is the archive name without the .esb suffix.

getModel

public ModelAdapter getModel()
The model adapter for the configuration.

Returns:
ModelAdapter The model adapter for the configuration.

setModel

public void setModel(ModelAdapter model)
Set the model adapter for the configuration.

Parameters:
model - The model adapter for the configuration.

setPublishers

public void setPublishers(java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> publishers)
Sets the publishers for this deployment.

Parameters:
publishers - The publishers for this deployment.

getPublishers

public java.util.List<org.jboss.internal.soa.esb.publish.ContractReferencePublisher> getPublishers()
Gets the publishers for this deployment.

Returns:
List List of publishers for this deployment.

setServlets

public void setServlets(java.util.List<org.jboss.internal.soa.esb.listeners.war.Servlet> servlets)
Sets the servlets for this deployment.

Parameters:
servlets - The servlets for this deployment.

getServlets

public java.util.List<org.jboss.internal.soa.esb.listeners.war.Servlet> getServlets()
Gets the servlets for this deployment.

Returns:
List List of servlets for this deployment.

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String String representation of this metadata.