org.apache.openejb.config
Class ServiceUtils

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

public class ServiceUtils
extends Object


Nested Class Summary
static class ServiceUtils.ProviderInfo
           
 
Field Summary
static String ANY
           
static String defaultProviderURL
          Default service provider package.
static Logger logger
           
static Messages messages
           
static String NONE
           
 
Constructor Summary
ServiceUtils()
           
 
Method Summary
static ServiceProvider getServiceProvider(String id)
           
static ServiceProvider getServiceProviderByType(String type)
           
static ServiceProvider getServiceProviderByType(String type, Properties required)
           
static ServiceProvider getServiceProviderByType(String providerType, String serviceType)
           
static String getServiceProviderId(String type)
           
static String getServiceProviderId(String type, Properties required)
           
static List<ServiceProvider> getServiceProviders()
           
static List<ServiceProvider> getServiceProviders(String packageName)
           
static List<ServiceProvider> getServiceProvidersByServiceType(String type)
           
static boolean hasServiceProvider(String id)
           
static boolean implies(Properties a, Properties b)
           
static Properties loadProperties(String pFile)
           
static Properties loadProperties(String propertiesFile, Properties defaults)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ServiceUtils

public ServiceUtils()
Method Detail

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.