public class DeploymentLoader extends Object implements DeploymentFilterable
| Modifier and Type | Field and Description |
|---|---|
static String |
EAR_SCOPED_CDI_BEANS |
static String |
EAR_WEBAPP_PERSISTENCE_XML_JARS |
static Logger |
logger |
static String |
OPENEJB_ALTDD_PREFIX |
static String |
RAR_URLS_KEY |
static String |
URLS_KEY |
CLASSPATH_EXCLUDE, CLASSPATH_FILTER_DESCRIPTORS, CLASSPATH_FILTER_SYSTEMAPPS, CLASSPATH_INCLUDE, CLASSPATH_REQUIRE_DESCRIPTOR, DEPLOYMENTS_CLASSPATH_PROPERTY, PACKAGE_EXCLUDE, PACKAGE_INCLUDE, SEARCH_CLASSPATH_FOR_DEPLOYMENTS_PROPERTY| Constructor and Description |
|---|
DeploymentLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected static Collection<URL> |
addPersistenceUnits(AppModule appModule,
URL... urls) |
protected static void |
addWebFragments(WebModule webModule,
Collection<URL> urls) |
void |
addWebModule(AppModule appModule,
URL warUrl,
ClassLoader parentClassLoader,
String contextRoot,
String moduleName) |
static EjbModule |
addWebModule(WebModule webModule,
AppModule appModule) |
static Map<String,URL> |
altDDSources(Map<String,URL> map,
boolean log)
Modifies the map passed in with all the alt dd URLs found
|
protected AppModule |
createAppModule(File jarFile,
String jarPath) |
protected ClientModule |
createClientModule(URL clientUrl,
String absolutePath,
ClassLoader appClassLoader,
String moduleName) |
protected ClientModule |
createClientModule(URL clientUrl,
String absolutePath,
ClassLoader appClassLoader,
String moduleName,
boolean log) |
protected static ConnectorModule |
createConnectorModule(String appId,
String rarPath,
ClassLoader parentClassLoader,
String moduleId) |
protected static ConnectorModule |
createConnectorModule(String appId,
String rarPath,
ClassLoader parentClassLoader,
String moduleId,
URL raXmlUrl) |
protected EjbModule |
createEjbModule(URL baseUrl,
String jarPath,
ClassLoader classLoader) |
WebModule |
createWebModule(String appId,
String warPath,
ClassLoader parentClassLoader,
String contextRoot,
String moduleName) |
Class<? extends DeploymentModule> |
discoverModuleType(URL baseUrl,
ClassLoader classLoader,
boolean searchForDescriptorlessApplications) |
Class<? extends DeploymentModule> |
discoverModuleType(URL baseUrl,
ClassLoader classLoader,
Set<RequireDescriptors> requireDescriptor) |
static List<URL> |
filterWebappUrls(URL[] webUrls,
URL exclusions) |
protected String |
getContextRoot() |
static Map<String,URL> |
getDescriptors(URL moduleUrl) |
protected File |
getFile(URL warUrl) |
protected static URL |
getFileUrl(File jarFile) |
protected String |
getModuleName() |
protected ClassLoader |
getOpenEJBClassLoader() |
static URL[] |
getWebappUrls(File warFile) |
static Map<String,URL[]> |
getWebappUrlsAndRars(File warFile) |
protected Map<String,URL> |
getWebDescriptors(File warFile) |
AppModule |
load(File jarFile) |
static Map<String,URL> |
mapDescriptors(org.apache.xbean.finder.ResourceFinder finder) |
static void |
reloadAltDD() |
static void |
scanDir(File dir,
Map<String,URL> files,
String path) |
static void |
scanDir(File dir,
Map<String,URL> files,
String path,
boolean recursive) |
static Application |
unmarshal(URL url) |
static File |
unpack(File jarFile) |
public static final Logger logger
public static final String OPENEJB_ALTDD_PREFIX
public static final String EAR_WEBAPP_PERSISTENCE_XML_JARS
public static final String EAR_SCOPED_CDI_BEANS
public static final String RAR_URLS_KEY
public static final String URLS_KEY
public AppModule load(File jarFile) throws OpenEJBException
OpenEJBExceptionprotected ClassLoader getOpenEJBClassLoader()
protected AppModule createAppModule(File jarFile, String jarPath) throws OpenEJBException
OpenEJBExceptionprotected ClientModule createClientModule(URL clientUrl, String absolutePath, ClassLoader appClassLoader, String moduleName) throws OpenEJBException
OpenEJBExceptionprotected ClientModule createClientModule(URL clientUrl, String absolutePath, ClassLoader appClassLoader, String moduleName, boolean log) throws OpenEJBException
OpenEJBExceptionprotected EjbModule createEjbModule(URL baseUrl, String jarPath, ClassLoader classLoader) throws OpenEJBException
OpenEJBExceptionpublic void addWebModule(AppModule appModule, URL warUrl, ClassLoader parentClassLoader, String contextRoot, String moduleName) throws OpenEJBException
OpenEJBExceptionpublic static EjbModule addWebModule(WebModule webModule, AppModule appModule) throws OpenEJBException
OpenEJBExceptionpublic WebModule createWebModule(String appId, String warPath, ClassLoader parentClassLoader, String contextRoot, String moduleName) throws OpenEJBException
OpenEJBExceptionprotected String getContextRoot()
protected String getModuleName()
protected static ConnectorModule createConnectorModule(String appId, String rarPath, ClassLoader parentClassLoader, String moduleId) throws OpenEJBException
OpenEJBExceptionprotected static ConnectorModule createConnectorModule(String appId, String rarPath, ClassLoader parentClassLoader, String moduleId, URL raXmlUrl) throws OpenEJBException
OpenEJBExceptionprotected static void addWebFragments(WebModule webModule, Collection<URL> urls) throws OpenEJBException
OpenEJBExceptionprotected static Collection<URL> addPersistenceUnits(AppModule appModule, URL... urls) throws OpenEJBException
OpenEJBExceptionpublic static Map<String,URL> getDescriptors(URL moduleUrl) throws OpenEJBException
OpenEJBExceptionpublic static Map<String,URL> mapDescriptors(org.apache.xbean.finder.ResourceFinder finder) throws IOException
IOExceptionpublic static Map<String,URL> altDDSources(Map<String,URL> map, boolean log)
map - Maplog - booleanprotected Map<String,URL> getWebDescriptors(File warFile) throws IOException
IOExceptionpublic static Application unmarshal(URL url) throws OpenEJBException
OpenEJBExceptionpublic Class<? extends DeploymentModule> discoverModuleType(URL baseUrl, ClassLoader classLoader, boolean searchForDescriptorlessApplications) throws IOException, UnknownModuleTypeException
public Class<? extends DeploymentModule> discoverModuleType(URL baseUrl, ClassLoader classLoader, Set<RequireDescriptors> requireDescriptor) throws IOException, UnknownModuleTypeException
public static File unpack(File jarFile) throws OpenEJBException
OpenEJBExceptionprotected static URL getFileUrl(File jarFile) throws OpenEJBException
OpenEJBExceptionpublic static void reloadAltDD()
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.