org.apache.openejb.config
Class ServiceUtils

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

public class ServiceUtils
extends java.lang.Object


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

Field Detail

ANY

public static final java.lang.String ANY

NONE

public static final java.lang.String NONE

defaultProviderURL

public static final java.lang.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(java.lang.String id)

getServiceProvider

public static ServiceProvider getServiceProvider(java.lang.String id)
                                          throws OpenEJBException
Throws:
OpenEJBException

getServiceProviderId

public static java.lang.String getServiceProviderId(java.lang.String type)
                                             throws OpenEJBException
Throws:
OpenEJBException

getServiceProviderId

public static java.lang.String getServiceProviderId(java.lang.String type,
                                                    java.util.Properties required)
                                             throws OpenEJBException
Throws:
OpenEJBException

getServiceProvidersByServiceType

public static java.util.List<ServiceProvider> getServiceProvidersByServiceType(java.lang.String type)
                                                                        throws OpenEJBException
Throws:
OpenEJBException

getServiceProviderByType

public static ServiceProvider getServiceProviderByType(java.lang.String type)
                                                throws OpenEJBException
Throws:
OpenEJBException

getServiceProviderByType

public static ServiceProvider getServiceProviderByType(java.lang.String type,
                                                       java.util.Properties required)
                                                throws OpenEJBException
Throws:
OpenEJBException

implies

public static boolean implies(java.util.Properties required,
                              java.util.Properties available)

getServiceProviderByType

public static ServiceProvider getServiceProviderByType(java.lang.String providerType,
                                                       java.lang.String serviceType)
                                                throws OpenEJBException
Throws:
OpenEJBException

getServiceProviders

public static java.util.List<ServiceProvider> getServiceProviders()
                                                           throws OpenEJBException
Throws:
OpenEJBException

getServiceProviders

public static java.util.List<ServiceProvider> getServiceProviders(java.lang.String packageName)
                                                           throws OpenEJBException
Throws:
OpenEJBException

registerServiceProvider

public static void registerServiceProvider(java.lang.String packageName,
                                           ServiceProvider provider)

loadProperties

public static java.util.Properties loadProperties(java.lang.String pFile)
                                           throws OpenEJBException
Throws:
OpenEJBException

loadProperties

public static java.util.Properties loadProperties(java.lang.String propertiesFile,
                                                  java.util.Properties defaults)
                                           throws OpenEJBException
Throws:
OpenEJBException


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