org.apache.openejb.config
Class ConfigurationFactory

java.lang.Object
  extended by org.apache.openejb.config.ConfigurationFactory
All Implemented Interfaces:
OpenEjbConfigurationFactory

public class ConfigurationFactory
extends Object
implements OpenEjbConfigurationFactory


Nested Class Summary
static class ConfigurationFactory.Chain
           
static class ConfigurationFactory.ResourceInfoComparator
           
 
Constructor Summary
ConfigurationFactory()
           
ConfigurationFactory(boolean offline)
           
ConfigurationFactory(boolean offline, DynamicDeployer preAutoConfigDeployer)
           
ConfigurationFactory(boolean offline, DynamicDeployer preAutoConfigDeployer, OpenEjbConfiguration configuration)
           
ConfigurationFactory(boolean offline, OpenEjbConfiguration configuration)
           
 
Method Summary
 AppInfo configureApplication(AppModule appModule)
           
 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>
T
configureService(Class<? extends T> type)
           
<T extends ServiceInfo>
T
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>
T
configureService(Service service, Class<? extends T> infoType)
           
<T extends ServiceInfo>
T
configureService(String id, Class<? extends T> type)
           
protected  List<String> getContainerIds()
           
protected  List<ContainerInfo> getContainerInfos()
           
protected static Class<? extends ContainerInfo> getContainerInfoType(String ctype)
           
 OpenEjbConfiguration getOpenEjbConfiguration()
           
protected  List<String> getResourceIds()
           
protected  List<String> getResourceIds(String type)
           
protected  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)
           
 Object toConfigDeclaration(String id, URI uri)
           
static List<HandlerChainInfo> toHandlerChainInfo(HandlerChains chains)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationFactory

public ConfigurationFactory()

ConfigurationFactory

public ConfigurationFactory(boolean offline,
                            OpenEjbConfiguration configuration)

ConfigurationFactory

public ConfigurationFactory(boolean offline,
                            DynamicDeployer preAutoConfigDeployer,
                            OpenEjbConfiguration configuration)

ConfigurationFactory

public ConfigurationFactory(boolean offline)

ConfigurationFactory

public ConfigurationFactory(boolean offline,
                            DynamicDeployer preAutoConfigDeployer)
Method Detail

toHandlerChainInfo

public static List<HandlerChainInfo> toHandlerChainInfo(HandlerChains chains)

init

public void init(Properties props)
          throws OpenEJBException
Specified by:
init in interface OpenEjbConfigurationFactory
Throws:
OpenEJBException

install

protected void install(ContainerInfo serviceInfo)
                throws OpenEJBException
Throws:
OpenEJBException

install

protected void install(ResourceInfo serviceInfo)
                throws OpenEJBException
Throws:
OpenEJBException

getOpenEjbConfiguration

public OpenEjbConfiguration getOpenEjbConfiguration()
                                             throws OpenEJBException
Specified by:
getOpenEjbConfiguration in interface OpenEjbConfigurationFactory
Throws:
OpenEJBException

toConfigDeclaration

public Object toConfigDeclaration(String id,
                                  URI uri)
                           throws OpenEJBException
Throws:
OpenEJBException

configureApplication

public AppInfo configureApplication(File jarFile)
                             throws OpenEJBException
Throws:
OpenEJBException

configureApplication

public EjbJarInfo configureApplication(EjbJar ejbJar)
                                throws OpenEJBException
Throws:
OpenEJBException

configureApplication

public EjbJarInfo configureApplication(EjbModule ejbModule)
                                throws OpenEJBException
Throws:
OpenEJBException

configureApplication

public ClientInfo configureApplication(ClientModule clientModule)
                                throws OpenEJBException
Throws:
OpenEJBException

configureApplication

public ConnectorInfo configureApplication(ConnectorModule connectorModule)
                                   throws OpenEJBException
Throws:
OpenEJBException

configureApplication

public WebAppInfo configureApplication(WebModule webModule)
                                throws OpenEJBException
Throws:
OpenEJBException

configureApplication

public AppInfo configureApplication(AppModule appModule)
                             throws OpenEJBException
Throws:
OpenEJBException

configureService

public <T extends ServiceInfo> T configureService(Class<? extends T> type)
                                       throws OpenEJBException
Throws:
OpenEJBException

configureService

public <T extends ServiceInfo> T configureService(Service service,
                                                  Class<? extends T> infoType)
                                       throws OpenEJBException
Throws:
OpenEJBException

configureService

public <T extends ServiceInfo> T configureService(String id,
                                                  Class<? extends T> type)
                                       throws OpenEJBException
Throws:
OpenEJBException

configureService

public <T extends ServiceInfo> T configureService(Class<? extends T> type,
                                                  String serviceId,
                                                  Properties declaredProperties,
                                                  String providerId,
                                                  String serviceType)
                                       throws OpenEJBException
Resolving the provider for a particular service follows this algorithm: 1. Attempt to load the provider specified by the 'providerId'. 2. If this fails, throw NoSuchProviderException 3. If providerId is null, attempt to load the specified provider using the 'serviceId' as the 'providerId' 4. If this fails, check the hardcoded defaults for a default providerId using the supplied 'type' 5. If this fails, throw NoSuchProviderException

Throws:
OpenEJBException

getSystemProperties

protected static Properties getSystemProperties(String serviceId,
                                                String serviceType)

getContainerInfoType

protected static Class<? extends ContainerInfo> getContainerInfoType(String ctype)

getResourceIds

protected List<String> getResourceIds()

getResourceIds

protected List<String> getResourceIds(String type)

getResourceIds

protected List<String> getResourceIds(String type,
                                      Properties required)

getResourceInfo

protected ResourceInfo getResourceInfo(String id)

getContainerIds

protected List<String> getContainerIds()

getContainerInfos

protected List<ContainerInfo> getContainerInfos()


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