Deprecated
for removal since 23.
The BeanContextServices interface provides a mechanism for a BeanContext to expose generic "services" to the BeanContextChild objects within.
| Modifier and Type | Method and Description |
|---|---|
| public void | addBeanContextServicesListener(BeanContextServicesListener
the bcsl)BeanContextServicesListener to add
References Deprecated
BeanContextServicesListener is deprecated or references (maybe indirectly) at least one deprecated element.
Adds a |
| public boolean | Returns: true if the service was successful added, false otherwisethe service to add serviceClass, BeanContextServiceProvider the serviceProvider)BeanContextServiceProvider
associated with the service
References Deprecated
BeanContextServiceProvider is deprecated or references (maybe indirectly) at least one deprecated element.
Adds a service to this BeanContext. |
| public Iterator | Returns: anIterator consisting of the
currently available servicesGets the currently available services for this context. |
| public Iterator | Returns: the currently available service selectors for the named serviceClassthe specified service serviceClass)Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider. |
| public Object | Returns: a reference to this context's named Service as requested ornullthe child, Object BeanContextChild
associated with this requestthe object requesting the service requestor, Class<?> class of the requested service serviceClass, Object the service dependent parameter serviceSelector, BeanContextServiceRevokedListener the
bcsrl)BeanContextServiceRevokedListener to notify
if the service should later become revoked
References Deprecated
BeanContextChild and BeanContextServiceRevokedListener are deprecated or reference (maybe indirectly) at least one deprecated element.
A |
| public boolean | Returns: true if the service is availablethe service in question serviceClass)Reports whether or not a given service is currently available from this context. |
| public void | releaseService(BeanContextChild
the child, Object BeanContextChildthe requestor requestor, Object the service service)
References Deprecated
BeanContextChild is deprecated or references (maybe indirectly) at least one deprecated element.
Releases a |
| public void | removeBeanContextServicesListener(BeanContextServicesListener
the bcsl)BeanContextServicesListener
to remove from this context
References Deprecated
BeanContextServicesListener is deprecated or references (maybe indirectly) at least one deprecated element.
Removes a |
| public void | revokeService(Class<?>
the service to revoke from this BeanContextServices serviceClass, BeanContextServiceProvider the BeanContextServiceProvider associated with
this particular service that is being revoked serviceProvider, boolean a value of revokeCurrentServicesNow)true
indicates an exceptional circumstance where the
BeanContextServiceProvider or
BeanContextServices wishes to immediately
terminate service to all currently outstanding references
to the specified service.
References Deprecated
BeanContextServiceProvider is deprecated or references (maybe indirectly) at least one deprecated element.
BeanContextServiceProviders wishing to remove a currently registered service from this context may do so via invocation of this method. |
| addBeanContextServicesListener | back to summary |
|---|---|
| public void addBeanContextServicesListener(BeanContextServicesListener bcsl)
References Deprecated
See corresponding docs for further information. Adds a
| |
| addService | back to summary |
|---|---|
| public boolean addService(Class<?> serviceClass, BeanContextServiceProvider serviceProvider)
References Deprecated
See corresponding docs for further information. Adds a service to this BeanContext.
| |
| getCurrentServiceClasses | back to summary |
|---|---|
| public Iterator Gets the currently available services for this context.
| |
| getCurrentServiceSelectors | back to summary |
|---|---|
| public Iterator Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider. | |
| getService | back to summary |
|---|---|
| public Object getService(BeanContextChild child, Object requestor, Class<?> serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException
References Deprecated
See corresponding docs for further information. A
| |
| hasService | back to summary |
|---|---|
| public boolean hasService(Class<?> serviceClass) Reports whether or not a given service is currently available from this context.
| |
| releaseService | back to summary |
|---|---|
| public void releaseService(BeanContextChild child, Object requestor, Object service)
References Deprecated
See corresponding docs for further information. Releases a
| |
| removeBeanContextServicesListener | back to summary |
|---|---|
| public void removeBeanContextServicesListener(BeanContextServicesListener bcsl)
References Deprecated
See corresponding docs for further information. Removes a
| |
| revokeService | back to summary |
|---|---|
| public void revokeService(Class<?> serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)
References Deprecated
See corresponding docs for further information. BeanContextServiceProviders wishing to remove
a currently registered service from this context
may do so via invocation of this method. Upon revocation of
the service, the
| |