org.apache.openejb.config
Class ConfigurationFactory
java.lang.Object
org.apache.openejb.config.ConfigurationFactory
- All Implemented Interfaces:
- OpenEjbConfigurationFactory
public class ConfigurationFactory
- extends Object
- implements OpenEjbConfigurationFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.