org.apache.openejb.config
Class ServiceUtils
java.lang.Object
org.apache.openejb.config.ServiceUtils
public class ServiceUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ANY
public static final String ANY
NONE
public static final String NONE
defaultProviderURL
public static final String defaultProviderURL
- Default service provider package. This value is choosen as follows:
1. System property "openejb.provider.default"
2. If in a full server containing a "conf" directory "org.apache.openejb"
3. Embedded mode "org.apache.openejb.embedded"
messages
public static Messages messages
logger
public static Logger logger
ServiceUtils
public ServiceUtils()
hasServiceProvider
public static boolean hasServiceProvider(String id)
getServiceProvider
public static ServiceProvider getServiceProvider(String id)
throws OpenEJBException
- Throws:
OpenEJBException
getServiceProviderId
public static String getServiceProviderId(String type)
throws OpenEJBException
- Throws:
OpenEJBException
getServiceProviderId
public static String getServiceProviderId(String type,
Properties required)
throws OpenEJBException
- Throws:
OpenEJBException
getServiceProvidersByServiceType
public static List<ServiceProvider> getServiceProvidersByServiceType(String type)
throws OpenEJBException
- Throws:
OpenEJBException
getServiceProviderByType
public static ServiceProvider getServiceProviderByType(String type)
throws OpenEJBException
- Throws:
OpenEJBException
getServiceProviderByType
public static ServiceProvider getServiceProviderByType(String type,
Properties required)
throws OpenEJBException
- Throws:
OpenEJBException
implies
public static boolean implies(Properties a,
Properties b)
getServiceProviderByType
public static ServiceProvider getServiceProviderByType(String providerType,
String serviceType)
throws OpenEJBException
- Throws:
OpenEJBException
getServiceProviders
public static List<ServiceProvider> getServiceProviders()
throws OpenEJBException
- Throws:
OpenEJBException
getServiceProviders
public static List<ServiceProvider> getServiceProviders(String packageName)
throws OpenEJBException
- Throws:
OpenEJBException
loadProperties
public static Properties loadProperties(String pFile)
throws OpenEJBException
- Throws:
OpenEJBException
loadProperties
public static Properties loadProperties(String propertiesFile,
Properties defaults)
throws OpenEJBException
- Throws:
OpenEJBException
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.