org.apache.openejb.config
Class DeploymentLoader

java.lang.Object
  extended by org.apache.openejb.config.DeploymentLoader

public class DeploymentLoader
extends Object

Version:
$Revision: 937937 $ $Date: 2010-04-26 08:47:29 +0200 (Mo, 26. Apr 2010) $

Field Summary
static Logger logger
           
 
Constructor Summary
DeploymentLoader()
           
 
Method Summary
protected static void addPersistenceUnits(AppModule appModule, URL... urls)
           
protected static void addWebModule(AppModule appModule, String warPath, ClassLoader parentClassLoader, String contextRoot, String moduleName)
           
static Map<String,URL> altDDSources(Map<String,URL> map, boolean log)
          Modifies the map passed in with all the alt dd URLs found
protected static AppModule createAppModule(File jarFile, String jarPath)
           
protected static ClientModule createClientModule(URL clientUrl, String absolutePath, ClassLoader appClassLoader, String moduleName)
           
protected static 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 EjbModule createEjbModule(URL baseUrl, String jarPath, ClassLoader classLoader, String moduleId)
           
protected static WebModule createWebModule(String appId, String warPath, ClassLoader parentClassLoader, String contextRoot, String moduleName)
           
static Class<? extends DeploymentModule> discoverModuleType(URL baseUrl, ClassLoader classLoader, boolean searchForDescriptorlessApplications)
           
static Class<? extends DeploymentModule> discoverModuleType(URL baseUrl, ClassLoader classLoader, Set<RequireDescriptors> requireDescriptor)
           
protected static File getFile(URL warUrl)
           
protected static URL getFileUrl(File jarFile)
           
static URL[] getWebappUrls(File warFile)
           
 AppModule load(File jarFile)
           
static void scanDir(File dir, Map<String,URL> files, String path)
           
static
<T> T
unmarshal(Class<T> type, String descriptor, URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static final Logger logger
Constructor Detail

DeploymentLoader

public DeploymentLoader()
Method Detail

load

public AppModule load(File jarFile)
               throws OpenEJBException
Throws:
OpenEJBException

createAppModule

protected static AppModule createAppModule(File jarFile,
                                           String jarPath)
                                    throws OpenEJBException
Throws:
OpenEJBException

createClientModule

protected static ClientModule createClientModule(URL clientUrl,
                                                 String absolutePath,
                                                 ClassLoader appClassLoader,
                                                 String moduleName)
                                          throws OpenEJBException
Throws:
OpenEJBException

createClientModule

protected static ClientModule createClientModule(URL clientUrl,
                                                 String absolutePath,
                                                 ClassLoader appClassLoader,
                                                 String moduleName,
                                                 boolean log)
                                          throws OpenEJBException
Throws:
OpenEJBException

createEjbModule

protected static EjbModule createEjbModule(URL baseUrl,
                                           String jarPath,
                                           ClassLoader classLoader,
                                           String moduleId)
                                    throws OpenEJBException
Throws:
OpenEJBException

addWebModule

protected static void addWebModule(AppModule appModule,
                                   String warPath,
                                   ClassLoader parentClassLoader,
                                   String contextRoot,
                                   String moduleName)
                            throws OpenEJBException
Throws:
OpenEJBException

createWebModule

protected static WebModule createWebModule(String appId,
                                           String warPath,
                                           ClassLoader parentClassLoader,
                                           String contextRoot,
                                           String moduleName)
                                    throws OpenEJBException
Throws:
OpenEJBException

getWebappUrls

public static URL[] getWebappUrls(File warFile)

createConnectorModule

protected static ConnectorModule createConnectorModule(String appId,
                                                       String rarPath,
                                                       ClassLoader parentClassLoader,
                                                       String moduleId)
                                                throws OpenEJBException
Throws:
OpenEJBException

addPersistenceUnits

protected static void addPersistenceUnits(AppModule appModule,
                                          URL... urls)
                                   throws OpenEJBException
Throws:
OpenEJBException

altDDSources

public static Map<String,URL> altDDSources(Map<String,URL> map,
                                           boolean log)
Modifies the map passed in with all the alt dd URLs found

Parameters:
map -
log -
Returns:
the same map instance updated with alt dds

getFile

protected static File getFile(URL warUrl)

unmarshal

public static <T> T unmarshal(Class<T> type,
                              String descriptor,
                              URL url)
                   throws OpenEJBException
Throws:
OpenEJBException

scanDir

public static void scanDir(File dir,
                           Map<String,URL> files,
                           String path)

discoverModuleType

public static Class<? extends DeploymentModule> discoverModuleType(URL baseUrl,
                                                                   ClassLoader classLoader,
                                                                   boolean searchForDescriptorlessApplications)
                                                            throws IOException,
                                                                   UnknownModuleTypeException
Throws:
IOException
UnknownModuleTypeException

discoverModuleType

public static Class<? extends DeploymentModule> discoverModuleType(URL baseUrl,
                                                                   ClassLoader classLoader,
                                                                   Set<RequireDescriptors> requireDescriptor)
                                                            throws IOException,
                                                                   UnknownModuleTypeException
Throws:
IOException
UnknownModuleTypeException

getFileUrl

protected static URL getFileUrl(File jarFile)
                         throws OpenEJBException
Throws:
OpenEJBException


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.