public class ConfigurationFactory extends Object implements OpenEjbConfigurationFactory
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigurationFactory.Chain |
static class |
ConfigurationFactory.ProxyBeanClassUpdate |
static class |
ConfigurationFactory.ResourceInfoComparator |
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDITIONAL_DEPLOYMENTS |
static String |
OPENEJB_JDBC_DATASOURCE_CREATOR |
protected static String |
VALIDATION_SKIP_PROPERTY |
| Constructor and Description |
|---|
ConfigurationFactory() |
ConfigurationFactory(boolean offline) |
ConfigurationFactory(boolean offline,
ConfigurationFactory.Chain deployerChain,
OpenEjbConfiguration configuration) |
ConfigurationFactory(boolean offline,
DynamicDeployer preAutoConfigDeployer) |
ConfigurationFactory(boolean offline,
DynamicDeployer preAutoConfigDeployer,
OpenEjbConfiguration configuration) |
ConfigurationFactory(boolean offline,
OpenEjbConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
AppInfo |
configureApplication(AppModule appModule) |
AppInfo |
configureApplication(ClassLoader classLoader,
String id,
List<File> jarFiles)
embedded usage
|
ClientInfo |
configureApplication(ClientModule clientModule) |
ConnectorInfo |
configureApplication(ConnectorModule connectorModule) |
EjbJarInfo |
configureApplication(EjbJar ejbJar) |
EjbJarInfo |
configureApplication(EjbModule ejbModule) |
AppInfo |
configureApplication(File jarFile) |
WebAppInfo |
configureApplication(WebModule webModule) |
<T extends ServiceInfo> |
configureService(Class<? extends T> type) |
<T extends ServiceInfo> |
configureService(Class<? extends T> type,
String serviceId,
Properties declaredProperties,
String providerId,
String serviceType)
Resolving the provider for a particular service follows this algorithm:
1.
|
<T extends ServiceInfo> |
configureService(Service service,
Class<? extends T> infoType)
This is the major piece of code that configures services.
|
<T extends ServiceInfo> |
configureService(String id,
Class<? extends T> type) |
ContainerInfo |
createContainerInfo(Container container) |
protected List<String> |
getContainerIds() |
protected List<ContainerInfo> |
getContainerInfos() |
protected static Class<? extends ContainerInfo> |
getContainerInfoType(String ctype) |
ArrayList<File> |
getModulesFromClassPath(List<File> declaredApps,
ClassLoader classLoader) |
OpenEjbConfiguration |
getOpenEjbConfiguration()
Main loop that gets executed when OpenEJB starts up Reads config files and produces the basic "AST" the assembler needs to actually build the contianer system
This method is called by the Assembler once at startup.
|
OpenEjbConfiguration |
getOpenEjbConfiguration(File configuartionFile) |
OpenEjbConfiguration |
getOpenEjbConfiguration(Openejb providedConf) |
protected static Properties |
getOverrides(Properties properties,
String serviceId,
String serviceType) |
protected List<String> |
getResourceIds() |
protected List<String> |
getResourceIds(String type) |
List<String> |
getResourceIds(String type,
Properties required) |
protected ResourceInfo |
getResourceInfo(String id) |
protected static Properties |
getSystemProperties(String serviceId,
String serviceType) |
void |
init(Properties props) |
protected void |
install(ContainerInfo serviceInfo) |
protected void |
install(ResourceInfo serviceInfo) |
static boolean |
isResourceType(String service,
List<String> types,
String type) |
AppModule |
loadApplication(ClassLoader classLoader,
String id,
List<File> jarFiles) |
static URI[] |
resolveClasspath(String rawstring)
Takes a raw unparsed string expected to be in jvm classpath syntax
and parses it, producing a collection of URIs representing the absolute
file paths of the classpath to be created.
|
protected Object |
toConfigDeclaration(String name,
String value) |
Object |
toConfigDeclaration(String id,
URI uri) |
static List<HandlerChainInfo> |
toHandlerChainInfo(HandlerChains chains) |
public static final String OPENEJB_JDBC_DATASOURCE_CREATOR
public static final String ADDITIONAL_DEPLOYMENTS
protected static final String VALIDATION_SKIP_PROPERTY
public ConfigurationFactory()
public ConfigurationFactory(boolean offline)
public ConfigurationFactory(boolean offline,
DynamicDeployer preAutoConfigDeployer)
public ConfigurationFactory(boolean offline,
OpenEjbConfiguration configuration)
public ConfigurationFactory(boolean offline,
DynamicDeployer preAutoConfigDeployer,
OpenEjbConfiguration configuration)
public ConfigurationFactory(boolean offline,
ConfigurationFactory.Chain deployerChain,
OpenEjbConfiguration configuration)
public static List<HandlerChainInfo> toHandlerChainInfo(HandlerChains chains)
public void init(Properties props) throws OpenEJBException
init in interface OpenEjbConfigurationFactoryOpenEJBExceptionprotected void install(ContainerInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionprotected void install(ResourceInfo serviceInfo) throws OpenEJBException
OpenEJBExceptionpublic OpenEjbConfiguration getOpenEjbConfiguration(File configuartionFile) throws OpenEJBException
OpenEJBExceptionpublic OpenEjbConfiguration getOpenEjbConfiguration(Openejb providedConf) throws OpenEJBException
OpenEJBExceptionpublic OpenEjbConfiguration getOpenEjbConfiguration() throws OpenEJBException
getOpenEjbConfiguration in interface OpenEjbConfigurationFactoryOpenEJBExceptionpublic ArrayList<File> getModulesFromClassPath(List<File> declaredApps, ClassLoader classLoader)
public ContainerInfo createContainerInfo(Container container) throws OpenEJBException
OpenEJBExceptionprotected Object toConfigDeclaration(String name, String value) throws URISyntaxException, OpenEJBException
URISyntaxExceptionOpenEJBExceptionpublic Object toConfigDeclaration(String id, URI uri) throws OpenEJBException
OpenEJBExceptionpublic AppInfo configureApplication(File jarFile) throws OpenEJBException
OpenEJBExceptionpublic AppInfo configureApplication(ClassLoader classLoader, String id, List<File> jarFiles) throws OpenEJBException
classLoader - classloaderid - id supplied from embedded properties or nulljarFiles - list of ejb modulesOpenEJBException - on errorpublic AppModule loadApplication(ClassLoader classLoader, String id, List<File> jarFiles) throws OpenEJBException
OpenEJBExceptionpublic EjbJarInfo configureApplication(EjbJar ejbJar) throws OpenEJBException
OpenEJBExceptionpublic EjbJarInfo configureApplication(EjbModule ejbModule) throws OpenEJBException
OpenEJBExceptionpublic ClientInfo configureApplication(ClientModule clientModule) throws OpenEJBException
OpenEJBExceptionpublic ConnectorInfo configureApplication(ConnectorModule connectorModule) throws OpenEJBException
OpenEJBExceptionpublic WebAppInfo configureApplication(WebModule webModule) throws OpenEJBException
OpenEJBExceptionpublic AppInfo configureApplication(AppModule appModule) throws OpenEJBException
OpenEJBExceptionpublic <T extends ServiceInfo> T configureService(Class<? extends T> type) throws OpenEJBException
OpenEJBExceptionpublic <T extends ServiceInfo> T configureService(Service service, Class<? extends T> infoType) throws OpenEJBException
T - infoTypeservice - ServiceinfoType - ClassOpenEJBException - On errorpublic static URI[] resolveClasspath(String rawstring) throws IOException
rawstring - unparsed string in "classpath" syntaxIOException - if path cannot be resolved or file referenced does not existpublic <T extends ServiceInfo> T configureService(String id, Class<? extends T> type) throws OpenEJBException
OpenEJBExceptionpublic <T extends ServiceInfo> T configureService(Class<? extends T> type, String serviceId, Properties declaredProperties, String providerId, String serviceType) throws OpenEJBException
type - Class TserviceId - StringdeclaredProperties - PropertiesproviderId - StringserviceType - StringOpenEJBExceptionprotected static Properties getSystemProperties(String serviceId, String serviceType)
protected static Properties getOverrides(Properties properties, String serviceId, String serviceType)
protected static Class<? extends ContainerInfo> getContainerInfoType(String ctype)
public List<String> getResourceIds(String type, Properties required)
protected ResourceInfo getResourceInfo(String id)
public static boolean isResourceType(String service, List<String> types, String type)
protected List<ContainerInfo> getContainerInfos()
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.