|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.deployment.common.DeploymentUtils
public class DeploymentUtils
Utility methods for deployment.
| Field Summary | |
|---|---|
static java.lang.String |
DEPLOYMENT_PROPERTY_JAVA_WEB_START_ENABLED
|
static java.lang.String |
DOMAIN_TARGET_NAME
|
| Constructor Summary | |
|---|---|
DeploymentUtils()
|
|
| Method Summary | |
|---|---|
static long |
checksum(java.io.File directory)
Computes the checksum of the URIs of files contained in a directory. |
static Artifacts |
downloadableArtifacts(Application app)
Returns the downloadable artifacts object derived from the properties saved with the specified Application |
static Artifacts |
downloadableArtifacts(DeploymentContext dc)
Returns the downloadable artifacts object from the specified deployment context, creating it there if it does not already exist. |
static Artifacts |
generatedArtifacts(Application app)
Returns the generated artifacts object derived from the properties saved with the specified Application |
static Artifacts |
generatedArtifacts(DeploymentContext dc)
Returns the generated artifacts object from the specified deployment context, creating it there if it does not already exist. |
static java.lang.String |
getDefaultEEName(java.lang.String pathName)
|
static java.lang.String |
getEmbeddedModulePath(java.lang.String appRootPath,
java.lang.String moduleUri)
This method returns the file path of an embedded module. |
static java.util.List<java.net.URI> |
getExternalLibraries(ReadableArchive archive)
|
static java.util.List<java.net.URL> |
getManifestLibraries(DeploymentContext context)
|
static java.util.List<java.net.URL> |
getManifestLibraries(DeploymentContext context,
java.util.jar.Manifest manifest)
|
static java.util.List<java.net.URL> |
getManifestLibraries(ReadableArchive archive)
|
static java.util.List<java.net.URL> |
getModuleLibraryJars(DeploymentContext context)
|
static java.lang.String |
getRelativeEmbeddedModulePath(java.lang.String appRootPath,
java.lang.String moduleUri)
This method returns the relative file path of an embedded module to the application root. |
static boolean |
hasResourcesXML(ReadableArchive archive)
|
static boolean |
isDASTarget(java.lang.String targetName)
|
static boolean |
isDomainTarget(java.lang.String targetName)
|
static boolean |
isEAR(ReadableArchive archive)
check whether the archive is a .ear |
static boolean |
isRAR(ReadableArchive archive)
check whether the archive is a .rar |
static boolean |
isWebArchive(ReadableArchive archive)
|
static FileArchive |
openAsFileArchive(java.io.File dir,
ArchiveFactory archiveFactory)
Opens the specified file as an archive, using the provided archive factory. |
static java.lang.String |
propertiesValue(java.util.Properties props,
char sep)
|
static java.lang.String |
relativizeWithinDomainIfPossible(java.net.URI absURI)
|
static boolean |
useV2Compatibility(DeploymentContext context)
|
static void |
validateApplicationName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEPLOYMENT_PROPERTY_JAVA_WEB_START_ENABLED
public static final java.lang.String DOMAIN_TARGET_NAME
| Constructor Detail |
|---|
public DeploymentUtils()
| Method Detail |
|---|
public static boolean isDASTarget(java.lang.String targetName)
public static boolean isDomainTarget(java.lang.String targetName)
public static long checksum(java.io.File directory)
directory - the directory for which to compute a checksum
public static Artifacts downloadableArtifacts(DeploymentContext dc)
dc - the deployment context from which to fetch the downloadable Artifacts object
public static Artifacts downloadableArtifacts(Application app)
app - the Application config object with (possibly) properties describing downloadable artifacts
public static Artifacts generatedArtifacts(DeploymentContext dc)
app -
public static Artifacts generatedArtifacts(Application app)
app - the Application config object with (possibly) properties describing generated artifacts
public static boolean isWebArchive(ReadableArchive archive)
public static java.lang.String getDefaultEEName(java.lang.String pathName)
pathName -
public static boolean hasResourcesXML(ReadableArchive archive)
public static boolean isRAR(ReadableArchive archive)
archive - archive to be tested
public static boolean isEAR(ReadableArchive archive)
archive - archive to be tested
public static java.lang.String getRelativeEmbeddedModulePath(java.lang.String appRootPath,
java.lang.String moduleUri)
appRootPath - The path of the application root which
contains the module
e.g. $domain_dir/applications/j2ee-apps/foomoduleUri - The module uri
e.g. fooEJB.jar
public static java.lang.String getEmbeddedModulePath(java.lang.String appRootPath,
java.lang.String moduleUri)
appRootPath - The path of the application root which
contains the module
e.g. $domain_dir/applications/j2ee-apps/foomoduleUri - The module uri
e.g. fooEJB.jar
public static boolean useV2Compatibility(DeploymentContext context)
public static java.lang.String relativizeWithinDomainIfPossible(java.net.URI absURI)
throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic static void validateApplicationName(java.lang.String name)
public static java.lang.String propertiesValue(java.util.Properties props,
char sep)
public static java.util.List<java.net.URL> getManifestLibraries(DeploymentContext context)
throws java.io.IOException
java.io.IOException
public static java.util.List<java.net.URL> getManifestLibraries(DeploymentContext context,
java.util.jar.Manifest manifest)
throws java.io.IOException
java.io.IOException
public static java.util.List<java.net.URL> getManifestLibraries(ReadableArchive archive)
throws java.io.IOException
java.io.IOExceptionpublic static java.util.List<java.net.URI> getExternalLibraries(ReadableArchive archive)
public static java.util.List<java.net.URL> getModuleLibraryJars(DeploymentContext context)
throws java.lang.Exception
java.lang.Exception
public static FileArchive openAsFileArchive(java.io.File dir,
ArchiveFactory archiveFactory)
throws java.io.IOException
dir - directory to be opened as an archivearchiveFactory - ArchiveFactory to use to create the archive object
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||