org.apache.geronimo.deployment.util
Class DeploymentHelper

java.lang.Object
  extended byorg.apache.geronimo.deployment.util.DeploymentHelper

public class DeploymentHelper
extends Object

Helper class that handles locating DDs in directories (mainly WEB-INF, META-INF), building class space and dealing with deployments

Version:
$Revision: 1.6 $ $Date: 2004/09/08 20:17:44 $

Field Summary
protected  URL geronimoURL
           
protected  URL j2eeURL
           
protected  URL url
           
protected  URLType urlType
           
 
Constructor Summary
DeploymentHelper(URLInfo urlInfo, String j2eeDDName, String geronimoDDName)
          Create an helper related to the specified deployment URL with META-INF as the directory with the given files
DeploymentHelper(URLInfo urlInfo, String j2eeDDName, String geronimoDDName, String infDir)
          Creates an helper related to the specified deployment URL.
 
Method Summary
 Document getGeronimoDoc(DocumentBuilder parser)
           
 Document getJ2EEDoc(DocumentBuilder parser)
           
 URL locateGeronimoDD()
          Locates Geronimo's deployment descriptor
 URL locateJ2EEDD()
          Locates J2EE deployment descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

url

protected final URL url

urlType

protected final URLType urlType

j2eeURL

protected URL j2eeURL

geronimoURL

protected URL geronimoURL
Constructor Detail

DeploymentHelper

public DeploymentHelper(URLInfo urlInfo,
                        String j2eeDDName,
                        String geronimoDDName)
                 throws DeploymentException
Create an helper related to the specified deployment URL with META-INF as the directory with the given files

See Also:
#DeploymentHelper(URLInfo, String, String, String, String)

DeploymentHelper

public DeploymentHelper(URLInfo urlInfo,
                        String j2eeDDName,
                        String geronimoDDName,
                        String infDir)
                 throws DeploymentException
Creates an helper related to the specified deployment URL.

Parameters:
urlInfo - Deployment URLInfo.
j2eeDDName - name of the J2EE deployment descriptor file
geronimoDDName - name of the Geronimo deployment descriptor file
infDir - the directory where deployment descriptors are to be looked up
Throws:
DeploymentException - when the deployment doesn't exist
Method Detail

locateJ2EEDD

public URL locateJ2EEDD()
Locates J2EE deployment descriptor.

Returns:
URL referencing the J2EE DD or null if no deployment descriptor is found.

getJ2EEDoc

public Document getJ2EEDoc(DocumentBuilder parser)

getGeronimoDoc

public Document getGeronimoDoc(DocumentBuilder parser)

locateGeronimoDD

public URL locateGeronimoDD()
Locates Geronimo's deployment descriptor

Returns:
URL referencing Geronimo's DD or null if no deployment descriptor is found


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.