|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.beans.beancontext.BeanContextChildSupport
java.beans.beancontext.BeanContextSupport
wt.services.ac.impl.DefaultACServices
Supported API: false
Extendable: false
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 |
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 |
private static final String RESOURCE
private static final String CLASSNAME
public static final String DEFAULT_CONTEXT_NAME
public static final Class DEFAULT_PROVIDER_CLASS
private String contextName
private List bcsListeners
private Map providerMap
private Map providerClasses
protected static final Iterator EMPTY_ITERATOR
private static final Object lock
Constructor Detail |
public DefaultACServices()
public DefaultACServices(String context_name) throws WTPropertyVetoException
context_name
-
WTPropertyVetoException
Method Detail |
public String getContextName()
getContextName
in interface ACServices
public void setContextName(String a_ContextName) throws WTPropertyVetoException
setContextName
in interface ACServices
a_ContextName
-
WTPropertyVetoException
private void contextNameValidate(String a_ContextName) throws WTPropertyVetoException
a_ContextName
-
WTPropertyVetoException
public void addBeanContextServicesListener(BeanContextServicesListener bcsl)
addBeanContextServicesListener
in interface BeanContextServices
bcsl
- public boolean addService(Class service_class, BeanContextServiceProvider bcsp)
addService
in interface BeanContextServices
service_class
- bcsp
-
public Iterator getCurrentServiceClasses()
getCurrentServiceClasses
in interface BeanContextServices
public Iterator getCurrentServiceSelectors(Class service_class)
getCurrentServiceSelectors
in interface BeanContextServices
service_class
-
public Object getService(BeanContextChild bcc, Object requestor, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getService
in interface BeanContextServices
bcc
- requestor
- service_class
- selector
- bcsrl
-
TooManyListenersException
public Iterator getServiceProviders()
public boolean hasService(Class service_class)
hasService
in interface BeanContextServices
service_class
-
public void releaseService(BeanContextChild bcc, Object requestor, Object service)
releaseService
in interface ACServices
bcc
- requestor
- service
- public void removeBeanContextServicesListener(BeanContextServicesListener bcsl)
removeBeanContextServicesListener
in interface BeanContextServices
bcsl
- public void revokeService(Class service_class, BeanContextServiceProvider bcsp, boolean revoke_now)
revokeService
in interface ACServices
service_class
- bcsp
- revoke_now
- protected ACServiceProvider createACServiceProvider(ServiceDescriptor service_descriptor) throws ACException
service_descriptor
-
ACException
protected Class getProviderClass(ServiceDescriptor service_descriptor) throws ACException
service_descriptor
-
ACException
public boolean addService(String service_name, BeanContextServiceProvider bcsp)
addService
in interface ACServices
service_name
- bcsp
-
public boolean addImplementation(ServiceDescriptor descriptor) throws ACException
addImplementation
in interface ACServices
descriptor
-
ACException
public Iterator getCurrentServiceNames()
getCurrentServiceNames
in interface ACServices
public Iterator getCurrentServiceSelectors(String service_name)
getCurrentServiceSelectors
in interface ACServices
service_name
-
public Iterator getCurrentServiceSelectors(String service_name, Object requestor)
getCurrentServiceSelectors
in interface ACServices
service_name
- requestor
-
public Object getService(BeanContextChild bcc, Object requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getService
in interface ACServices
bcc
- requestor
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Object[] getServices(BeanContextChild bcc, Object requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServices
in interface ACServices
bcc
- requestor
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Object[] getServices(BeanContextChild bcc, Object requestor, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServices
in interface ACServices
bcc
- requestor
- service_class
- selector
- bcsrl
-
TooManyListenersException
public String getServiceImplementationName(BeanContextChild bcc, Object requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceImplementationName
in interface ACServices
bcc
- requestor
- service_name
- selector
- bcsrl
-
TooManyListenersException
public String[] getServiceImplementationNames(BeanContextChild bcc, Object requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceImplementationNames
in interface ACServices
bcc
- requestor
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Map getServiceMap(BeanContextChild bcc, Object[] requestors, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceMap
in interface ACServices
bcc
- requestors
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Map getServiceMap(BeanContextChild bcc, Object[] requestors, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceMap
in interface ACServices
bcc
- requestors
- service_class
- selector
- bcsrl
-
TooManyListenersException
public Map getServicesMap(BeanContextChild bcc, Object[] requestors, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServicesMap
in interface ACServices
bcc
- requestors
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Map getServicesMap(BeanContextChild bcc, Object[] requestors, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServicesMap
in interface ACServices
bcc
- requestors
- service_class
- selector
- bcsrl
-
TooManyListenersException
public Map getServiceImplementationNameMap(BeanContextChild bcc, Object[] requestors, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceImplementationNameMap
in interface ACServices
bcc
- requestors
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Map getServiceImplementationNamesMap(BeanContextChild bcc, Object[] requestors, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceImplementationNamesMap
in interface ACServices
bcc
- requestors
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Map getServiceMap(BeanContextChild bcc, ACRequestor requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceMap
in interface ACServices
bcc
- requestor
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Map getServiceMap(BeanContextChild bcc, ACRequestor requestor, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceMap
in interface ACServices
bcc
- requestor
- service_class
- selector
- bcsrl
-
TooManyListenersException
public Map getServicesMap(BeanContextChild bcc, ACRequestor requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServicesMap
in interface ACServices
bcc
- requestor
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Map getServicesMap(BeanContextChild bcc, ACRequestor requestor, Class service_class, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServicesMap
in interface ACServices
bcc
- requestor
- service_class
- selector
- bcsrl
-
TooManyListenersException
public Map getServiceImplementationNameMap(BeanContextChild bcc, ACRequestor requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceImplementationNameMap
in interface ACServices
bcc
- requestor
- service_name
- selector
- bcsrl
-
TooManyListenersException
public Map getServiceImplementationNamesMap(BeanContextChild bcc, ACRequestor requestor, String service_name, Object selector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
getServiceImplementationNamesMap
in interface ACServices
bcc
- requestor
- service_name
- selector
- bcsrl
-
TooManyListenersException
public boolean hasService(String service_name)
hasService
in interface ACServices
service_name
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |