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 DEFAULT_PROVIDER_URL
          Default service provider package.
static Logger logger
           
static Messages messages
           
static String NONE
           
 
Constructor Summary
ServiceUtils()
           
 
Method Summary
static ProviderManager getManager()
           
static ServiceProvider getServiceProvider(String idString)
           
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 required, Properties available)
           
static void registerServiceProvider(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 String ANY

NONE

public static final String NONE

DEFAULT_PROVIDER_URL

public static final String DEFAULT_PROVIDER_URL
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

getManager

public static ProviderManager getManager()

hasServiceProvider

public static boolean hasServiceProvider(String id)

getServiceProvider

public static ServiceProvider getServiceProvider(String idString)
                                          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,
                                                       Properties required)
                                                throws OpenEJBException
Throws:
OpenEJBException

implies

public static boolean implies(Properties required,
                              Properties available)

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

registerServiceProvider

public static void registerServiceProvider(String packageName,
                                           ServiceProvider provider)


Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.