Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » deployment » [javadoc | source]
org.jboss.deployment
public class: DeploymentInfo [javadoc | source]
java.lang.Object
   org.jboss.deployment.DeploymentInfo

All Implemented Interfaces:
    Serializable

Service Deployment Info . Every deployment (even the J2EE ones) should be seen at some point as Service Deployment info
Field Summary
public  Date date    The initial construction timestamp 
public  URL url    the URL identifing this SDI 
public  URL localUrl    An optional URL to a local copy of the deployment 
public  URL watch    The URL used to watch for changes when the deployment is unpacked 
public  String shortName    The suffix of the deployment url 
public  long lastDeployed    The last system time the deployment inited by the MainDeployer 
public  long lastModified    use for "should we redeploy failed" 
public  String status    A free form status for the "state" can be Deployed/failed etc etc 
public  DeploymentState state    The current state of the deployment 
public transient  SubDeployer deployer    The subdeployer that handles the deployment 
public transient  RepositoryClassLoader ucl    Unified CL is a global scope class loader 
public transient  URLClassLoader localCl    local Cl is a CL that is used for metadata loading, if ejb-jar.xml is left in the parent CL through old deployments, this makes sure that we use the local version. You must use the URLClassLoader.findResource method to restrict loading to the deployment URL. 
public transient  URLClassLoader annotationsCl    A CL for preloading annotations, it should be made available in the deployment create step. 
public final  Collection classpath    The classpath declared by this xml descriptor, needs entry 
public final  List mbeans    The mbeans deployed 
public final  Set subDeployments    Anyone can have subdeployments 
public  DeploymentInfo parent    And the subDeployments have a parent 
public  String webContext    the web root context in case of war file 
public transient  Manifest manifest    the manifest entry of the deployment (if any) manifest is not serializable ... is only needed at deployment time, so we mark it transient 
public  Document document    Each Deployment is really mapping one to one to a XML document, here in its parsed form. A xerces document (org.apache.xerces.dom.DocumentImpl) is serializable. 
public  URL documentUrl    An optional URL to the URL of the document loaded 
public transient  Object metaData    We can hold "typed" metadata, really an interpretation of the bare XML document 
public  String alternativeDD    If this deployed as part of an EAR, there may be an alernative DD 
public transient  HashMap context    An arbitrary map of state associated with the deployment 
public  boolean isXML    Is this a stand-alone service descriptor 
public  boolean isScript    Is this a stand-alone script 
public  boolean isDirectory    Does the deployment url point to a directory 
public  boolean sortedSubDeployments    Are the subdeploymets already sorted 
public  ObjectName deployedObject    The variable deployedObject can contain the MBean that is created through the deployment. for instance, deploying an ejb-jar results in an EjbModule mbean, which is stored here. 
public  LoaderRepositoryConfig repositoryConfig    The configuration of the loader repository for this deployment 
Constructor:
 public DeploymentInfo(URL url,
    DeploymentInfo parent,
    MBeanServer server) throws DeploymentException 
    CTOR
Method from org.jboss.deployment.DeploymentInfo Summary:
addLibraryJar,   cleanup,   createClassLoaders,   equals,   getCanonicalName,   getManifest,   getServer,   getTopRepositoryConfig,   hashCode,   setRepositoryInfo,   setServer,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.deployment.DeploymentInfo Detail:
 public  void addLibraryJar(URL libJar) 
    All library jars referenced through either the manifest references or sar classpaths are added to the root DeploymentInfo class loader. This is neccessary to avoid IllegalAccessErrors due to classes in a pkg being split across jars
 public  void cleanup() 
 public  void createClassLoaders() throws Exception 
    Create a UnifiedClassLoader for the deployment that loads from the localUrl and uses its parent deployments url as its orignal url. Previously xml descriptors simply used the TCL but since the UCLs are now registered as mbeans each must be unique.
 public boolean equals(Object other) 
 public String getCanonicalName() 
    The sortName concatenated with the canonical names of all parents.
 public Manifest getManifest() 
    getManifest returns (if present) the deployment's manifest it is lazy loaded to work from the localURL
 public MBeanServer getServer() 
 public LoaderRepositoryConfig getTopRepositoryConfig() 
    The the class loader repository name of the top most DeploymentInfo
 public int hashCode() 
 public  void setRepositoryInfo(LoaderRepositoryConfig config) throws Exception 
    Set the UnifiedLoaderRepository info for the deployment. This can only be called for the parent deployment, and must be done early in the Subdeployer init(DeploymentInfo) method prior to any class loading.
 public  void setServer(MBeanServer server) 
 public String toString()