wt.services.ac.impl
Class DefaultACServices

java.lang.Object
  extended byjava.beans.beancontext.BeanContextChildSupport
      extended byjava.beans.beancontext.BeanContextSupport
          extended bywt.services.ac.impl.DefaultACServices
All Implemented Interfaces:
ACServices, BeanContext, BeanContextChild, BeanContextServiceRevokedListener, BeanContextServices, BeanContextServicesListener, Collection, DesignMode, EventListener, PropertyChangeListener, Serializable, VetoableChangeListener, Visibility

public class DefaultACServices
extends BeanContextSupport
implements ACServices



Supported API: false

Extendable: false

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.beans.beancontext.BeanContextSupport
BeanContextSupport.BCSChild, BeanContextSupport.BCSIterator
 
Field Summary
private  List bcsListeners
           
private static String CLASSNAME
           
private  String contextName
           
static String DEFAULT_CONTEXT_NAME
          

Supported API: false
static Class DEFAULT_PROVIDER_CLASS
          

Supported API: false
protected static Iterator EMPTY_ITERATOR
           
private static Object lock
           
private  Map providerClasses
           
private  Map providerMap
           
private static String RESOURCE
           
 
Fields inherited from class java.beans.beancontext.BeanContextSupport
bcmListeners, children, designTime, locale, okToUseGui
 
Fields inherited from class java.beans.beancontext.BeanContextChildSupport
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport
 
Fields inherited from interface wt.services.ac.ACServices
CONTEXT_NAME
 
Fields inherited from interface java.beans.beancontext.BeanContext
globalHierarchyLock
 
Fields inherited from interface java.beans.DesignMode
PROPERTYNAME
 
Constructor Summary
DefaultACServices()
          

Supported API: false
DefaultACServices(String context_name)
          

Supported API: false
 
Method Summary
 void addBeanContextServicesListener(BeanContextServicesListener bcsl)
          

Supported API: false
 boolean addImplementation(ServiceDescriptor descriptor)
          

Supported API: false
 boolean addService(Class service_class, BeanContextServiceProvider bcsp)
          

Supported API: false
 boolean addService(String service_name, BeanContextServiceProvider bcsp)
          

Supported API: false
private  void contextNameValidate(String a_ContextName)
           
protected  ACServiceProvider createACServiceProvider(ServiceDescriptor service_descriptor)
          

Supported API: false
 String getContextName()
          Gets the value of the attribute: contextName.
 Iterator getCurrentServiceClasses()
          

Supported API: false
 Iterator getCurrentServiceNames()
          

Supported API: false
 Iterator getCurrentServiceSelectors(Class service_class)
          

Supported API: false
 Iterator getCurrentServiceSelectors(String service_name)
          

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

Supported API: false
protected  Class getProviderClass(ServiceDescriptor service_descriptor)
          

Supported API: false
 Object getService(BeanContextChild bcc, Object requestor, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Object getService(BeanContextChild bcc, Object requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 String getServiceImplementationName(BeanContextChild bcc, Object requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServiceImplementationNameMap(BeanContextChild bcc, ACRequestor requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServiceImplementationNameMap(BeanContextChild bcc, Object[] requestors, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 String[] getServiceImplementationNames(BeanContextChild bcc, Object requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServiceImplementationNamesMap(BeanContextChild bcc, ACRequestor requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServiceImplementationNamesMap(BeanContextChild bcc, Object[] requestors, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServiceMap(BeanContextChild bcc, ACRequestor requestor, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServiceMap(BeanContextChild bcc, ACRequestor requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServiceMap(BeanContextChild bcc, Object[] requestors, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServiceMap(BeanContextChild bcc, Object[] requestors, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Iterator getServiceProviders()
          

Supported API: false
 Object[] getServices(BeanContextChild bcc, Object requestor, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Object[] getServices(BeanContextChild bcc, Object requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServicesMap(BeanContextChild bcc, ACRequestor requestor, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServicesMap(BeanContextChild bcc, ACRequestor requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServicesMap(BeanContextChild bcc, Object[] requestors, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 Map getServicesMap(BeanContextChild bcc, Object[] requestors, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl)
          

Supported API: false
 boolean hasService(Class service_class)
          

Supported API: false
 boolean hasService(String service_name)
          

Supported API: false
 void releaseService(BeanContextChild bcc, Object requestor, Object service)
          

Supported API: false
 void removeBeanContextServicesListener(BeanContextServicesListener bcsl)
          

Supported API: false
 void revokeService(Class service_class, BeanContextServiceProvider bcsp, boolean revoke_now)
          

Supported API: false
 void setContextName(String a_ContextName)
          Sets the value of the attribute: contextName.
 
Methods inherited from class java.beans.beancontext.BeanContextSupport
add, addAll, addBeanContextMembershipListener, avoidingGui, bcsChildren, bcsPreDeserializationHook, bcsPreSerializationHook, childDeserializedHook, childJustAddedHook, childJustRemovedHook, classEquals, clear, contains, containsAll, containsKey, copyChildren, createBCSChild, deserialize, dontUseGui, fireChildrenAdded, fireChildrenRemoved, getBeanContextPeer, getChildBeanContextChild, getChildBeanContextMembershipListener, getChildPropertyChangeListener, getChildSerializable, getChildVetoableChangeListener, getChildVisibility, getLocale, getResource, getResourceAsStream, initialize, instantiateChild, isDesignTime, isEmpty, isSerializing, iterator, needsGui, okToUseGui, propertyChange, readChildren, remove, remove, removeAll, removeBeanContextMembershipListener, retainAll, serialize, setDesignTime, setLocale, size, toArray, toArray, validatePendingAdd, validatePendingRemove, vetoableChange, writeChildren
 
Methods inherited from class java.beans.beancontext.BeanContextChildSupport
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, initializeBeanContextResources, isDelegated, releaseBeanContextResources, removePropertyChangeListener, removeVetoableChangeListener, serviceAvailable, serviceRevoked, setBeanContext, validatePendingSetBeanContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.beans.beancontext.BeanContext
addBeanContextMembershipListener, getResource, getResourceAsStream, instantiateChild, removeBeanContextMembershipListener
 
Methods inherited from interface java.beans.beancontext.BeanContextChild
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface java.beans.DesignMode
isDesignTime, setDesignTime
 
Methods inherited from interface java.beans.Visibility
avoidingGui, dontUseGui, needsGui, okToUseGui
 
Methods inherited from interface java.beans.beancontext.BeanContextServicesListener
serviceAvailable
 
Methods inherited from interface java.beans.beancontext.BeanContextServiceRevokedListener
serviceRevoked
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

DEFAULT_CONTEXT_NAME

public static final String DEFAULT_CONTEXT_NAME


Supported API: false

See Also:
Constant Field Values

DEFAULT_PROVIDER_CLASS

public static final Class DEFAULT_PROVIDER_CLASS


Supported API: false


contextName

private String contextName

bcsListeners

private List bcsListeners

providerMap

private Map providerMap

providerClasses

private Map providerClasses

EMPTY_ITERATOR

protected static final Iterator EMPTY_ITERATOR

lock

private static final Object lock
Constructor Detail

DefaultACServices

public DefaultACServices()


Supported API: false


DefaultACServices

public DefaultACServices(String context_name)
                  throws WTPropertyVetoException


Supported API: false

Parameters:
context_name -
Throws:
WTPropertyVetoException
Method Detail

getContextName

public String getContextName()
Gets the value of the attribute: contextName.

Supported API: false

Specified by:
getContextName in interface ACServices
Returns:
String

setContextName

public void setContextName(String a_ContextName)
                    throws WTPropertyVetoException
Sets the value of the attribute: contextName.

Supported API: false

Specified by:
setContextName in interface ACServices
Parameters:
a_ContextName -
Throws:
WTPropertyVetoException

contextNameValidate

private void contextNameValidate(String a_ContextName)
                          throws WTPropertyVetoException
Parameters:
a_ContextName -
Throws:
WTPropertyVetoException

addBeanContextServicesListener

public void addBeanContextServicesListener(BeanContextServicesListener bcsl)


Supported API: false

Specified by:
addBeanContextServicesListener in interface BeanContextServices
Parameters:
bcsl -

addService

public boolean addService(Class service_class,
                          BeanContextServiceProvider bcsp)


Supported API: false

Specified by:
addService in interface BeanContextServices
Parameters:
service_class -
bcsp -
Returns:
boolean

getCurrentServiceClasses

public Iterator getCurrentServiceClasses()


Supported API: false

Specified by:
getCurrentServiceClasses in interface BeanContextServices
Returns:
Iterator

getCurrentServiceSelectors

public Iterator getCurrentServiceSelectors(Class service_class)


Supported API: false

Specified by:
getCurrentServiceSelectors in interface BeanContextServices
Parameters:
service_class -
Returns:
Iterator

getService

public Object getService(BeanContextChild bcc,
                         Object requestor,
                         Class service_class,
                         Object selector,
                         BeanContextServiceRevokedListener bcsrl)
                  throws TooManyListenersException


Supported API: false

Specified by:
getService in interface BeanContextServices
Parameters:
bcc -
requestor -
service_class -
selector -
bcsrl -
Returns:
Object
Throws:
TooManyListenersException

getServiceProviders

public Iterator getServiceProviders()


Supported API: false

Returns:
Iterator

hasService

public boolean hasService(Class service_class)


Supported API: false

Specified by:
hasService in interface BeanContextServices
Parameters:
service_class -
Returns:
boolean

releaseService

public void releaseService(BeanContextChild bcc,
                           Object requestor,
                           Object service)


Supported API: false

Specified by:
releaseService in interface ACServices
Parameters:
bcc -
requestor -
service -

removeBeanContextServicesListener

public void removeBeanContextServicesListener(BeanContextServicesListener bcsl)


Supported API: false

Specified by:
removeBeanContextServicesListener in interface BeanContextServices
Parameters:
bcsl -

revokeService

public void revokeService(Class service_class,
                          BeanContextServiceProvider bcsp,
                          boolean revoke_now)


Supported API: false

Specified by:
revokeService in interface ACServices
Parameters:
service_class -
bcsp -
revoke_now -

createACServiceProvider

protected ACServiceProvider createACServiceProvider(ServiceDescriptor service_descriptor)
                                             throws ACException


Supported API: false

Parameters:
service_descriptor -
Returns:
ACServiceProvider
Throws:
ACException

getProviderClass

protected Class getProviderClass(ServiceDescriptor service_descriptor)
                          throws ACException


Supported API: false

Parameters:
service_descriptor -
Returns:
Class
Throws:
ACException

addService

public boolean addService(String service_name,
                          BeanContextServiceProvider bcsp)


Supported API: false

Specified by:
addService in interface ACServices
Parameters:
service_name -
bcsp -
Returns:
boolean

addImplementation

public boolean addImplementation(ServiceDescriptor descriptor)
                          throws ACException


Supported API: false

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

getCurrentServiceNames

public Iterator getCurrentServiceNames()


Supported API: false

Specified by:
getCurrentServiceNames in interface ACServices
Returns:
Iterator

getCurrentServiceSelectors

public Iterator getCurrentServiceSelectors(String service_name)


Supported API: false

Specified by:
getCurrentServiceSelectors in interface ACServices
Parameters:
service_name -
Returns:
Iterator

getCurrentServiceSelectors

public Iterator getCurrentServiceSelectors(String service_name,
                                           Object requestor)


Supported API: false

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

getService

public Object getService(BeanContextChild bcc,
                         Object requestor,
                         String service_name,
                         Object selector,
                         BeanContextServiceRevokedListener bcsrl)
                  throws TooManyListenersException


Supported API: false

Specified by:
getService in interface ACServices
Parameters:
bcc -
requestor -
service_name -
selector -
bcsrl -
Returns:
Object
Throws:
TooManyListenersException

getServices

public Object[] getServices(BeanContextChild bcc,
                            Object requestor,
                            String service_name,
                            Object selector,
                            BeanContextServiceRevokedListener bcsrl)
                     throws TooManyListenersException


Supported API: false

Specified by:
getServices in interface ACServices
Parameters:
bcc -
requestor -
service_name -
selector -
bcsrl -
Returns:
Object[]
Throws:
TooManyListenersException

getServices

public Object[] getServices(BeanContextChild bcc,
                            Object requestor,
                            Class service_class,
                            Object selector,
                            BeanContextServiceRevokedListener bcsrl)
                     throws TooManyListenersException


Supported API: false

Specified by:
getServices in interface ACServices
Parameters:
bcc -
requestor -
service_class -
selector -
bcsrl -
Returns:
Object[]
Throws:
TooManyListenersException

getServiceImplementationName

public String getServiceImplementationName(BeanContextChild bcc,
                                           Object requestor,
                                           String service_name,
                                           Object selector,
                                           BeanContextServiceRevokedListener bcsrl)
                                    throws TooManyListenersException


Supported API: false

Specified by:
getServiceImplementationName in interface ACServices
Parameters:
bcc -
requestor -
service_name -
selector -
bcsrl -
Returns:
String
Throws:
TooManyListenersException

getServiceImplementationNames

public String[] getServiceImplementationNames(BeanContextChild bcc,
                                              Object requestor,
                                              String service_name,
                                              Object selector,
                                              BeanContextServiceRevokedListener bcsrl)
                                       throws TooManyListenersException


Supported API: false

Specified by:
getServiceImplementationNames in interface ACServices
Parameters:
bcc -
requestor -
service_name -
selector -
bcsrl -
Returns:
String[]
Throws:
TooManyListenersException

getServiceMap

public Map getServiceMap(BeanContextChild bcc,
                         Object[] requestors,
                         String service_name,
                         Object selector,
                         BeanContextServiceRevokedListener bcsrl)
                  throws TooManyListenersException


Supported API: false

Specified by:
getServiceMap in interface ACServices
Parameters:
bcc -
requestors -
service_name -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServiceMap

public Map getServiceMap(BeanContextChild bcc,
                         Object[] requestors,
                         Class service_class,
                         Object selector,
                         BeanContextServiceRevokedListener bcsrl)
                  throws TooManyListenersException


Supported API: false

Specified by:
getServiceMap in interface ACServices
Parameters:
bcc -
requestors -
service_class -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServicesMap

public Map getServicesMap(BeanContextChild bcc,
                          Object[] requestors,
                          String service_name,
                          Object selector,
                          BeanContextServiceRevokedListener bcsrl)
                   throws TooManyListenersException


Supported API: false

Specified by:
getServicesMap in interface ACServices
Parameters:
bcc -
requestors -
service_name -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServicesMap

public Map getServicesMap(BeanContextChild bcc,
                          Object[] requestors,
                          Class service_class,
                          Object selector,
                          BeanContextServiceRevokedListener bcsrl)
                   throws TooManyListenersException


Supported API: false

Specified by:
getServicesMap in interface ACServices
Parameters:
bcc -
requestors -
service_class -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServiceImplementationNameMap

public Map getServiceImplementationNameMap(BeanContextChild bcc,
                                           Object[] requestors,
                                           String service_name,
                                           Object selector,
                                           BeanContextServiceRevokedListener bcsrl)
                                    throws TooManyListenersException


Supported API: false

Specified by:
getServiceImplementationNameMap in interface ACServices
Parameters:
bcc -
requestors -
service_name -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServiceImplementationNamesMap

public Map getServiceImplementationNamesMap(BeanContextChild bcc,
                                            Object[] requestors,
                                            String service_name,
                                            Object selector,
                                            BeanContextServiceRevokedListener bcsrl)
                                     throws TooManyListenersException


Supported API: false

Specified by:
getServiceImplementationNamesMap in interface ACServices
Parameters:
bcc -
requestors -
service_name -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServiceMap

public Map getServiceMap(BeanContextChild bcc,
                         ACRequestor requestor,
                         String service_name,
                         Object selector,
                         BeanContextServiceRevokedListener bcsrl)
                  throws TooManyListenersException


Supported API: false

Specified by:
getServiceMap in interface ACServices
Parameters:
bcc -
requestor -
service_name -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServiceMap

public Map getServiceMap(BeanContextChild bcc,
                         ACRequestor requestor,
                         Class service_class,
                         Object selector,
                         BeanContextServiceRevokedListener bcsrl)
                  throws TooManyListenersException


Supported API: false

Specified by:
getServiceMap in interface ACServices
Parameters:
bcc -
requestor -
service_class -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServicesMap

public Map getServicesMap(BeanContextChild bcc,
                          ACRequestor requestor,
                          String service_name,
                          Object selector,
                          BeanContextServiceRevokedListener bcsrl)
                   throws TooManyListenersException


Supported API: false

Specified by:
getServicesMap in interface ACServices
Parameters:
bcc -
requestor -
service_name -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServicesMap

public Map getServicesMap(BeanContextChild bcc,
                          ACRequestor requestor,
                          Class service_class,
                          Object selector,
                          BeanContextServiceRevokedListener bcsrl)
                   throws TooManyListenersException


Supported API: false

Specified by:
getServicesMap in interface ACServices
Parameters:
bcc -
requestor -
service_class -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServiceImplementationNameMap

public Map getServiceImplementationNameMap(BeanContextChild bcc,
                                           ACRequestor requestor,
                                           String service_name,
                                           Object selector,
                                           BeanContextServiceRevokedListener bcsrl)
                                    throws TooManyListenersException


Supported API: false

Specified by:
getServiceImplementationNameMap in interface ACServices
Parameters:
bcc -
requestor -
service_name -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

getServiceImplementationNamesMap

public Map getServiceImplementationNamesMap(BeanContextChild bcc,
                                            ACRequestor requestor,
                                            String service_name,
                                            Object selector,
                                            BeanContextServiceRevokedListener bcsrl)
                                     throws TooManyListenersException


Supported API: false

Specified by:
getServiceImplementationNamesMap in interface ACServices
Parameters:
bcc -
requestor -
service_name -
selector -
bcsrl -
Returns:
Map
Throws:
TooManyListenersException

hasService

public boolean hasService(String service_name)


Supported API: false

Specified by:
hasService in interface ACServices
Parameters:
service_name -
Returns:
boolean