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 |
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, ReadableArchive archive) throws Exception
Exceptionpublic static boolean isScanningAllowed(Application app, String entryName)
public static List<URI> getLibraryJarURIs(Application app, ReadableArchive archive) throws Exception
Exceptionpublic static BundleDescriptor getCurrentBundleForContext(DeploymentContext context)
public static boolean isRAConnectionFactory(org.glassfish.hk2.api.ServiceLocator habitat,
String type,
Application thisApp)
public static ArchiveType earType()
public static ArchiveType ejbType()
public static ArchiveType carType()
public static ArchiveType warType()
public static ArchiveType rarType()
public static 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, ReadableArchive archive, ArchiveType archiveType) throws IOException
IOExceptionpublic static void readAlternativeRuntimeDescriptor(ReadableArchive appArchive, ReadableArchive embeddedArchive, Archivist archivist, BundleDescriptor descriptor, String altDDPath) throws IOException, SAXParseException
IOExceptionSAXParseExceptionpublic static void readRuntimeDeploymentDescriptor(List<ConfigurationDeploymentDescriptorFile> confDDFiles, ReadableArchive archive, 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,
ReadableArchive archive,
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 valuepublic static Application getApplicationFromEnv(JndiNameEnvironment env)
public static String getApplicationName(JndiNameEnvironment env)
public static String getModuleName(JndiNameEnvironment env)
public static boolean getTreatComponentAsModule(JndiNameEnvironment env)
public static String getComponentEnvId(JndiNameEnvironment env)
public static boolean isWhiteListed(Application application, String className)
application - className - Copyright © 2017. All rights reserved.