public class DOLUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Logger |
deplLogger |
static String |
INVALID_DESC_MAPPING |
static String |
SCHEMA_LOCATION_TAG |
static String |
W3C_XML_SCHEMA |
| Modifier and Type | Method and Description |
|---|---|
static org.glassfish.api.deployment.archive.ArchiveType |
carType() |
static org.glassfish.api.deployment.archive.ArchiveType |
earType() |
static org.glassfish.api.deployment.archive.ArchiveType |
ejbType() |
static boolean |
equals(Object a,
Object b) |
static List<ConfigurationDeploymentDescriptorFile> |
getConfigurationDeploymentDescriptorFiles(org.glassfish.hk2.api.ServiceLocator habitat,
String containerType) |
static BundleDescriptor |
getCurrentBundleForContext(org.glassfish.api.deployment.DeploymentContext context) |
static Logger |
getDefaultLogger() |
static List<URI> |
getLibraryJarURIs(Application app,
org.glassfish.api.deployment.archive.ReadableArchive archive) |
static List<URI> |
getLibraryJarURIs(BundleDescriptor bundleDesc,
org.glassfish.api.deployment.archive.ReadableArchive archive) |
static org.glassfish.api.deployment.archive.ArchiveType |
getModuleType(String moduleType)
Utility method to retrieve a
ArchiveType from a stringified module type. |
static List<String> |
getProprietaryDTDStart() |
static List<String> |
getProprietarySchemaNamespaces() |
static boolean |
isGFDDOverWLSDD() |
static boolean |
isIgnoreWLSDD() |
static boolean |
isRAConnectionFactory(org.glassfish.hk2.api.ServiceLocator habitat,
String type,
Application thisApp) |
static List<ConfigurationDeploymentDescriptorFile> |
processConfigurationDDFiles(List<ConfigurationDeploymentDescriptorFile> ddFiles,
org.glassfish.api.deployment.archive.ReadableArchive archive,
org.glassfish.api.deployment.archive.ArchiveType archiveType) |
static org.glassfish.api.deployment.archive.ArchiveType |
rarType() |
static void |
readAlternativeRuntimeDescriptor(org.glassfish.api.deployment.archive.ReadableArchive appArchive,
org.glassfish.api.deployment.archive.ReadableArchive embeddedArchive,
Archivist archivist,
BundleDescriptor descriptor,
String altDDPath) |
static void |
readRuntimeDeploymentDescriptor(List<ConfigurationDeploymentDescriptorFile> confDDFiles,
org.glassfish.api.deployment.archive.ReadableArchive archive,
org.glassfish.deployment.common.RootDeploymentDescriptor descriptor,
Archivist main,
boolean warnIfMultipleDDs)
Read the runtime deployment descriptors (can contained in one or
many file) set the corresponding information in the passed descriptor.
|
static boolean |
setElementValue(XMLElement element,
String value,
Object o)
receives notiification of the value for a particular tag
|
static void |
setExtensionArchivistForSubArchivist(org.glassfish.hk2.api.ServiceLocator habitat,
org.glassfish.api.deployment.archive.ReadableArchive archive,
org.glassfish.deployment.common.ModuleDescriptor md,
Application app,
Archivist subArchivist) |
static void |
validateRuntimeAltDDPath(String runtimeAltDDPath) |
static org.glassfish.api.deployment.archive.ArchiveType |
warType() |
public static final String W3C_XML_SCHEMA
public static final String SCHEMA_LOCATION_TAG
public static final Logger deplLogger
public static final String INVALID_DESC_MAPPING
public static Logger getDefaultLogger()
public static List<URI> getLibraryJarURIs(BundleDescriptor bundleDesc, org.glassfish.api.deployment.archive.ReadableArchive archive) throws Exception
Exceptionpublic static List<URI> getLibraryJarURIs(Application app, org.glassfish.api.deployment.archive.ReadableArchive archive) throws Exception
Exceptionpublic static BundleDescriptor getCurrentBundleForContext(org.glassfish.api.deployment.DeploymentContext context)
public static boolean isRAConnectionFactory(org.glassfish.hk2.api.ServiceLocator habitat,
String type,
Application thisApp)
public static org.glassfish.api.deployment.archive.ArchiveType earType()
public static org.glassfish.api.deployment.archive.ArchiveType ejbType()
public static org.glassfish.api.deployment.archive.ArchiveType carType()
public static org.glassfish.api.deployment.archive.ArchiveType warType()
public static org.glassfish.api.deployment.archive.ArchiveType rarType()
public static org.glassfish.api.deployment.archive.ArchiveType getModuleType(String moduleType)
ArchiveType from a stringified module type.
Since ArchiveType is an extensible abstraction and implementations are plugged in via HK2 service
registry, this method returns null if HK2 service registry is not setup.
If null is passed to this method, it returns null instead of returning an arbitrary ArchiveType or throwing
an exception.moduleType - String equivalent of the module type being looked up. null is allowed.public static boolean isGFDDOverWLSDD()
public static boolean isIgnoreWLSDD()
public static void validateRuntimeAltDDPath(String runtimeAltDDPath)
public static List<ConfigurationDeploymentDescriptorFile> processConfigurationDDFiles(List<ConfigurationDeploymentDescriptorFile> ddFiles, org.glassfish.api.deployment.archive.ReadableArchive archive, org.glassfish.api.deployment.archive.ArchiveType archiveType) throws IOException
IOExceptionpublic static void readAlternativeRuntimeDescriptor(org.glassfish.api.deployment.archive.ReadableArchive appArchive,
org.glassfish.api.deployment.archive.ReadableArchive embeddedArchive,
Archivist archivist,
BundleDescriptor descriptor,
String altDDPath)
throws IOException,
SAXParseException
IOExceptionSAXParseExceptionpublic static void readRuntimeDeploymentDescriptor(List<ConfigurationDeploymentDescriptorFile> confDDFiles, org.glassfish.api.deployment.archive.ReadableArchive archive, org.glassfish.deployment.common.RootDeploymentDescriptor descriptor, Archivist main, boolean warnIfMultipleDDs) throws IOException, SAXParseException
confDDFiles - the sorted configuration files for this archivearchive - the archivedescriptor - the initialized deployment descriptormain - the main archivistwarnIfMultipleDDs - whether to log warnings if both the GlassFish and the legacy Sun descriptors are presentIOExceptionSAXParseExceptionpublic static void setExtensionArchivistForSubArchivist(org.glassfish.hk2.api.ServiceLocator habitat,
org.glassfish.api.deployment.archive.ReadableArchive archive,
org.glassfish.deployment.common.ModuleDescriptor md,
Application app,
Archivist subArchivist)
public static List<ConfigurationDeploymentDescriptorFile> getConfigurationDeploymentDescriptorFiles(org.glassfish.hk2.api.ServiceLocator habitat, String containerType)
public static boolean setElementValue(XMLElement element, String value, Object o)
element - the xml elementvalue - it's associated valueCopyright © 2013. All Rights Reserved.