org.huihoo.jfox.ejb.server
Class DeploymentInfo

java.lang.Object
  |
  +--org.huihoo.jfox.ejb.server.DeploymentInfo

public class DeploymentInfo
extends java.lang.Object


Field Summary
 java.util.Collection classpath
          The classpath declared by this xml descriptor, needs entry *
 java.util.Date date
          Variables ------------------------------------------------------------ when *
 ObjectName deployedObject
          The variable deployedObject can contain the MBean that is created through the deployment.
 org.w3c.dom.Document document
          Each Deployment is really mapping one to one to a XML document, here in its parsed form
 boolean isDirectory
           
 boolean isXML
           
 long lastDeployed
           
 long lastModified
           
 java.lang.ClassLoader 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 ensures that we use the local version *
 java.net.URL localUrl
           
 java.util.jar.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
 java.util.List mbeans
          The mbeans deployed
 java.lang.Object metaData
          We can hold "typed" metadata, really an interpretation of the bare XML document
static ObjectName OBJECT_NAME
           
 org.huihoo.jfox.ejb.server.DeploymentInfo parent
          And the subDeployments have a parent
 ObjectName repositoryName
          The ObjectName of the loader repository for this deployment
 java.lang.String shortName
           
 java.lang.String status
          use for "should we redeploy failed" A free form status for the "state" can be Deployed/failed etc etc
 java.util.Set subDeployments
          Anyone can have subdeployments
 UnifiedClassLoader ucl
          Unified CL is a global scope class loader
 java.net.URL url
          the URL identifing this SDI *
 java.net.URLClassLoader urlcl
           
 java.net.URL watch
           
 java.lang.String webContext
          the web root context in case of war file
 
Constructor Summary
DeploymentInfo()
           
DeploymentInfo(java.net.URL url, org.huihoo.jfox.ejb.server.DeploymentInfo parent)
           
 
Method Summary
 void createClassLoaders(MBeanServer server, java.net.URL lUrl, java.io.File libfiles)
           
 void createClassLoaders(java.net.URL url)
           
 void createClassLoaders(java.net.URL[] urls)
           
 boolean equals(java.lang.Object other)
           
 Deployer getDeployer()
           
 java.util.jar.Manifest getManifest()
          getManifest returns (if present) the deployment's manifest it is lazy loaded to work from the localURL
static java.lang.String getShortName(java.lang.String name)
           
 ObjectName getTopRepositoryName()
          The the class loader repository name of the top most DeploymentInfo
 int hashCode()
           
 void setDeployer(Deployer deployer)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

date

public java.util.Date date
Variables ------------------------------------------------------------ when *


shortName

public java.lang.String shortName

lastDeployed

public long lastDeployed

lastModified

public long lastModified

urlcl

public java.net.URLClassLoader urlcl

ucl

public UnifiedClassLoader ucl
Unified CL is a global scope class loader


status

public java.lang.String status
use for "should we redeploy failed" A free form status for the "state" can be Deployed/failed etc etc


webContext

public java.lang.String webContext
the web root context in case of war file


metaData

public java.lang.Object metaData
We can hold "typed" metadata, really an interpretation of the bare XML document


isXML

public boolean isXML

isDirectory

public boolean isDirectory

OBJECT_NAME

public static final ObjectName OBJECT_NAME

url

public java.net.URL url
the URL identifing this SDI *


localUrl

public java.net.URL localUrl

watch

public java.net.URL watch

localCl

public java.lang.ClassLoader 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 ensures that we use the local version *


classpath

public final java.util.Collection classpath
The classpath declared by this xml descriptor, needs entry *


mbeans

public final java.util.List mbeans
The mbeans deployed


subDeployments

public final java.util.Set subDeployments
Anyone can have subdeployments


parent

public org.huihoo.jfox.ejb.server.DeploymentInfo parent
And the subDeployments have a parent


manifest

public java.util.jar.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


document

public org.w3c.dom.Document document
Each Deployment is really mapping one to one to a XML document, here in its parsed form


deployedObject

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.


repositoryName

public ObjectName repositoryName
The ObjectName of the loader repository for this deployment

Constructor Detail

DeploymentInfo

public DeploymentInfo(java.net.URL url,
                      org.huihoo.jfox.ejb.server.DeploymentInfo parent)
               throws DeploymentException
Parameters:
url -
parent -
Throws:
DeploymentException

DeploymentInfo

public DeploymentInfo()
Method Detail

createClassLoaders

public void createClassLoaders(java.net.URL url)
                        throws java.lang.Exception
java.lang.Exception

createClassLoaders

public void createClassLoaders(java.net.URL[] urls)
                        throws java.lang.Exception
java.lang.Exception

createClassLoaders

public void createClassLoaders(MBeanServer server,
                               java.net.URL lUrl,
                               java.io.File libfiles)
                        throws java.lang.Exception
java.lang.Exception

getTopRepositoryName

public ObjectName getTopRepositoryName()
The the class loader repository name of the top most DeploymentInfo

Returns:
javax.management.

getManifest

public java.util.jar.Manifest getManifest()
getManifest returns (if present) the deployment's manifest it is lazy loaded to work from the localURL

Returns:
java.util.jar.Manifest

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
int

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object
Parameters:
other -
Returns:
boolean

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String

getShortName

public static java.lang.String getShortName(java.lang.String name)
Parameters:
name -
Returns:
String

setDeployer

public void setDeployer(Deployer deployer)
Parameters:
deployer -

getDeployer

public Deployer getDeployer()
Returns:
org.huihoo.jfox.ejb.server.deploy.Deployer