wt.services.ac.impl
Class DefaultACServiceProvider

java.lang.Object
  extended bywt.services.ac.impl.DefaultACServiceProvider
All Implemented Interfaces:
ACServiceProvider, BeanContextServiceProvider
Direct Known Subclasses:
TypeBasedACServiceProvider

public class DefaultACServiceProvider
extends Object
implements ACServiceProvider



Supported API: false

Extendable: false


Nested Class Summary
private  class DefaultACServiceProvider.MultipleEntries
           
private static interface DefaultACServiceProvider.SelectorEntry
           
private  class DefaultACServiceProvider.SingleEntry
           
 
Field Summary
private static String CLASSNAME
           
static Class DEFAULT_REQUESTOR_KEY
          

Supported API: false
static String DEFAULT_REQUESTOR_NAME
          

Supported API: false
static String[] DEFAULT_SEARCH_NAMES
          

Supported API: false
static String DEFAULT_SELECTOR
          

Supported API: false
private  Object lock
           
private static String RESOURCE
           
private static Cache SEARCH_CLASS_CACHE
           
private  Map selectorMap
           
private  String serviceName
           
 
Fields inherited from interface wt.services.ac.ACServiceProvider
SERVICE_IMPLEMENTATIONS, SERVICE_NAME
 
Constructor Summary
DefaultACServiceProvider()
          

Supported API: false
DefaultACServiceProvider(String service_name)
          

Supported API: false
 
Method Summary
 boolean addImplementation(ServiceDescriptor descriptor)
          

Supported API: false
protected  ServiceImplementation createServiceImplementation(ServiceDescriptor descriptor)
          

Supported API: false
protected  ServiceImplementation[] filterImplementationsByPriority(Iterator implementations)
          

Supported API: false
 Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class service_class)
          

Supported API: false
 Iterator getCurrentServiceSelectors(BeanContextServices bcs, String service_name)
          

Supported API: false
 Iterator getCurrentServiceSelectors(BeanContextServices bcs, String service_name, Object requestor)
          

Supported API: false
protected  Object getRequestorKey(Object requestor)
          

Supported API: false
protected  String[] getSearchNames(Object requestor_key)
          

Supported API: false
 Object getService(BeanContextServices bcs, Object requestor, Class service_class, Object selector)
          

Supported API: false
 Object getService(BeanContextServices bcs, Object requestor, String service_name, Object selector)
          

Supported API: false
 String getServiceImplementationName(BeanContextServices bcs, Object requestor, String service_name, Object selector)
          

Supported API: false
 Map getServiceImplementationNameMap(BeanContextServices bcs, ACRequestor requestor, String service_name, Object selector)
          

Supported API: false
 Map getServiceImplementationNameMap(BeanContextServices bcs, Object[] requestors, String service_name, Object selector)
          

Supported API: false
 String[] getServiceImplementationNames(BeanContextServices bcs, Object requestor, String service_name, Object selector)
          

Supported API: false
 Map getServiceImplementationNamesMap(BeanContextServices bcs, ACRequestor requestor, String service_name, Object selector)
          

Supported API: false
 Map getServiceImplementationNamesMap(BeanContextServices bcs, Object[] requestors, String service_name, Object selector)
          

Supported API: false
protected  ServiceImplementation[] getServiceImplementations(BeanContextServices bcs, Object requestor, String service_name, Object selector)
          

Supported API: false
 Iterator getServiceImplementations(Object selector)
          

Supported API: false
 Map getServiceMap(BeanContextServices bcs, ACRequestor requestor, Class service_class, Object selector)
          

Supported API: false
 Map getServiceMap(BeanContextServices bcs, ACRequestor requestor, String service_name, Object selector)
          

Supported API: false
 Map getServiceMap(BeanContextServices bcs, Object[] requestors, Class service_class, Object selector)
          

Supported API: false
 Map getServiceMap(BeanContextServices bcs, Object[] requestors, String service_name, Object selector)
          

Supported API: false
 String getServiceName()
          Gets the value of the attribute: serviceName.
 Object[] getServices(BeanContextServices bcs, Object requestor, Class service_class, Object selector)
          

Supported API: false
 Object[] getServices(BeanContextServices bcs, Object requestor, String service_name, Object selector)
          

Supported API: false
 Map getServicesMap(BeanContextServices bcs, ACRequestor requestor, Class service_class, Object selector)
          

Supported API: false
 Map getServicesMap(BeanContextServices bcs, ACRequestor requestor, String service_name, Object selector)
          

Supported API: false
 Map getServicesMap(BeanContextServices bcs, Object[] requestors, Class service_class, Object selector)
          

Supported API: false
 Map getServicesMap(BeanContextServices bcs, Object[] requestors, String service_name, Object selector)
          

Supported API: false
private  Map intGetServiceImplementationNamesMap(BeanContextServices bcs, Object[] requestors, String service_name, Object selector, boolean isMultiple)
           
private  Map intGetServicesMap(BeanContextServices bcs, Object[] requestors, String service_name, Object selector, boolean isMultiple)
           
 void releaseService(BeanContextServices bcs, Object requestor, Object service)
          

Supported API: false
private  void serviceNameValidate(String a_ServiceName)
           
 void setServiceName(String a_ServiceName)
          Sets the value of the attribute: serviceName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

DEFAULT_REQUESTOR_KEY

public static final Class DEFAULT_REQUESTOR_KEY


Supported API: false


DEFAULT_REQUESTOR_NAME

public static final String DEFAULT_REQUESTOR_NAME


Supported API: false


DEFAULT_SELECTOR

public static final String DEFAULT_SELECTOR


Supported API: false

See Also:
Constant Field Values

DEFAULT_SEARCH_NAMES

public static final String[] DEFAULT_SEARCH_NAMES


Supported API: false


serviceName

private String serviceName

selectorMap

private Map selectorMap

SEARCH_CLASS_CACHE

private static final Cache SEARCH_CLASS_CACHE

lock

private final Object lock
Constructor Detail

DefaultACServiceProvider

public DefaultACServiceProvider()


Supported API: false


DefaultACServiceProvider

public DefaultACServiceProvider(String service_name)
                         throws WTPropertyVetoException


Supported API: false

Parameters:
service_name -
Throws:
WTPropertyVetoException
Method Detail

getServiceName

public String getServiceName()
Gets the value of the attribute: serviceName.

Supported API: false

Specified by:
getServiceName in interface ACServiceProvider
Returns:
String

setServiceName

public void setServiceName(String a_ServiceName)
                    throws WTPropertyVetoException
Sets the value of the attribute: serviceName.

Supported API: false

Specified by:
setServiceName in interface ACServiceProvider
Parameters:
a_ServiceName -
Throws:
WTPropertyVetoException

serviceNameValidate

private void serviceNameValidate(String a_ServiceName)
                          throws WTPropertyVetoException
Parameters:
a_ServiceName -
Throws:
WTPropertyVetoException

getCurrentServiceSelectors

public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
                                           Class service_class)


Supported API: false

Specified by:
getCurrentServiceSelectors in interface BeanContextServiceProvider
Parameters:
bcs -
service_class -
Returns:
Iterator

getService

public Object getService(BeanContextServices bcs,
                         Object requestor,
                         Class service_class,
                         Object selector)


Supported API: false

Specified by:
getService in interface BeanContextServiceProvider
Parameters:
bcs -
requestor -
service_class -
selector -
Returns:
Object

releaseService

public void releaseService(BeanContextServices bcs,
                           Object requestor,
                           Object service)


Supported API: false

Specified by:
releaseService in interface BeanContextServiceProvider
Parameters:
bcs -
requestor -
service -

createServiceImplementation

protected ServiceImplementation createServiceImplementation(ServiceDescriptor descriptor)
                                                     throws ACException


Supported API: false

Parameters:
descriptor -
Returns:
ServiceImplementation
Throws:
ACException

filterImplementationsByPriority

protected ServiceImplementation[] filterImplementationsByPriority(Iterator implementations)


Supported API: false

Parameters:
implementations -
Returns:
ServiceImplementation[]

getRequestorKey

protected Object getRequestorKey(Object requestor)


Supported API: false

Parameters:
requestor -
Returns:
Object

getSearchNames

protected String[] getSearchNames(Object requestor_key)
                           throws WTException


Supported API: false

Parameters:
requestor_key -
Returns:
String[]
Throws:
WTException

getServiceImplementations

protected ServiceImplementation[] getServiceImplementations(BeanContextServices bcs,
                                                            Object requestor,
                                                            String service_name,
                                                            Object selector)


Supported API: false

Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
ServiceImplementation[]

addImplementation

public boolean addImplementation(ServiceDescriptor descriptor)
                          throws ACException


Supported API: false

Specified by:
addImplementation in interface ACServiceProvider
Parameters:
descriptor -
Returns:
boolean
Throws:
ACException

getCurrentServiceSelectors

public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
                                           String service_name)


Supported API: false

Specified by:
getCurrentServiceSelectors in interface ACServiceProvider
Parameters:
bcs -
service_name -
Returns:
Iterator

getCurrentServiceSelectors

public Iterator getCurrentServiceSelectors(BeanContextServices bcs,
                                           String service_name,
                                           Object requestor)


Supported API: false

Specified by:
getCurrentServiceSelectors in interface ACServiceProvider
Parameters:
bcs -
service_name -
requestor -
Returns:
Iterator

getServiceImplementations

public Iterator getServiceImplementations(Object selector)


Supported API: false

Specified by:
getServiceImplementations in interface ACServiceProvider
Parameters:
selector -
Returns:
Iterator

getService

public Object getService(BeanContextServices bcs,
                         Object requestor,
                         String service_name,
                         Object selector)


Supported API: false

Specified by:
getService in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
Object

getServices

public Object[] getServices(BeanContextServices bcs,
                            Object requestor,
                            String service_name,
                            Object selector)


Supported API: false

Specified by:
getServices in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
Object[]

getServices

public Object[] getServices(BeanContextServices bcs,
                            Object requestor,
                            Class service_class,
                            Object selector)


Supported API: false

Specified by:
getServices in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_class -
selector -
Returns:
Object[]

getServiceImplementationName

public String getServiceImplementationName(BeanContextServices bcs,
                                           Object requestor,
                                           String service_name,
                                           Object selector)


Supported API: false

Specified by:
getServiceImplementationName in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
String

getServiceImplementationNames

public String[] getServiceImplementationNames(BeanContextServices bcs,
                                              Object requestor,
                                              String service_name,
                                              Object selector)


Supported API: false

Specified by:
getServiceImplementationNames in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
String[]

getServiceMap

public Map getServiceMap(BeanContextServices bcs,
                         Object[] requestors,
                         String service_name,
                         Object selector)


Supported API: false

Specified by:
getServiceMap in interface ACServiceProvider
Parameters:
bcs -
requestors -
service_name -
selector -
Returns:
Map

getServiceMap

public Map getServiceMap(BeanContextServices bcs,
                         Object[] requestors,
                         Class service_class,
                         Object selector)


Supported API: false

Specified by:
getServiceMap in interface ACServiceProvider
Parameters:
bcs -
requestors -
service_class -
selector -
Returns:
Map

getServicesMap

public Map getServicesMap(BeanContextServices bcs,
                          Object[] requestors,
                          String service_name,
                          Object selector)


Supported API: false

Specified by:
getServicesMap in interface ACServiceProvider
Parameters:
bcs -
requestors -
service_name -
selector -
Returns:
Map

getServicesMap

public Map getServicesMap(BeanContextServices bcs,
                          Object[] requestors,
                          Class service_class,
                          Object selector)


Supported API: false

Specified by:
getServicesMap in interface ACServiceProvider
Parameters:
bcs -
requestors -
service_class -
selector -
Returns:
Map

getServiceImplementationNameMap

public Map getServiceImplementationNameMap(BeanContextServices bcs,
                                           Object[] requestors,
                                           String service_name,
                                           Object selector)


Supported API: false

Specified by:
getServiceImplementationNameMap in interface ACServiceProvider
Parameters:
bcs -
requestors -
service_name -
selector -
Returns:
Map

getServiceImplementationNamesMap

public Map getServiceImplementationNamesMap(BeanContextServices bcs,
                                            Object[] requestors,
                                            String service_name,
                                            Object selector)


Supported API: false

Specified by:
getServiceImplementationNamesMap in interface ACServiceProvider
Parameters:
bcs -
requestors -
service_name -
selector -
Returns:
Map

getServiceMap

public Map getServiceMap(BeanContextServices bcs,
                         ACRequestor requestor,
                         String service_name,
                         Object selector)


Supported API: false

Specified by:
getServiceMap in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
Map

getServiceMap

public Map getServiceMap(BeanContextServices bcs,
                         ACRequestor requestor,
                         Class service_class,
                         Object selector)


Supported API: false

Specified by:
getServiceMap in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_class -
selector -
Returns:
Map

getServicesMap

public Map getServicesMap(BeanContextServices bcs,
                          ACRequestor requestor,
                          String service_name,
                          Object selector)


Supported API: false

Specified by:
getServicesMap in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
Map

getServicesMap

public Map getServicesMap(BeanContextServices bcs,
                          ACRequestor requestor,
                          Class service_class,
                          Object selector)


Supported API: false

Specified by:
getServicesMap in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_class -
selector -
Returns:
Map

getServiceImplementationNameMap

public Map getServiceImplementationNameMap(BeanContextServices bcs,
                                           ACRequestor requestor,
                                           String service_name,
                                           Object selector)


Supported API: false

Specified by:
getServiceImplementationNameMap in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
Map

getServiceImplementationNamesMap

public Map getServiceImplementationNamesMap(BeanContextServices bcs,
                                            ACRequestor requestor,
                                            String service_name,
                                            Object selector)


Supported API: false

Specified by:
getServiceImplementationNamesMap in interface ACServiceProvider
Parameters:
bcs -
requestor -
service_name -
selector -
Returns:
Map

intGetServiceImplementationNamesMap

private Map intGetServiceImplementationNamesMap(BeanContextServices bcs,
                                                Object[] requestors,
                                                String service_name,
                                                Object selector,
                                                boolean isMultiple)

intGetServicesMap

private Map intGetServicesMap(BeanContextServices bcs,
                              Object[] requestors,
                              String service_name,
                              Object selector,
                              boolean isMultiple)