Deprecated
for removal since 23.
This helper class provides a utility implementation of the java.beans.beancontext.BeanContextServices interface.
Since this class directly implements the BeanContextServices interface, the class can, and is intended to be used either by subclassing this implementation, or via delegation of an instance of this class from another through the BeanContextProxy interface.
| Modifier and Type | Class and Description |
|---|---|
| protected class | BeanContextServicesSupport.
A protected nested class containing per-child information
in the |
| protected class | BeanContextServicesSupport.
References Deprecated
Subclasses may subclass this nested class to represent a proxy for
each BeanContextServiceProvider.
BeanContextServiceProvider and BeanContextServiceRevokedListener are deprecated or reference (maybe indirectly) at least one deprecated element.
|
| protected static class | BeanContextServicesSupport.
subclasses may subclass this nested class to add behaviors for each BeanContextServicesProvider. |
| Modifier and Type | Field and Description |
|---|---|
| protected transient ArrayList | bcsListeners
List of |
| protected transient BeanContextServicesSupport. | proxy
References Deprecated
Delegate for the BeanContextServicesSupport.BCSSProxyServiceProvider is deprecated or references (maybe indirectly) at least one deprecated element.
BeanContextServiceProvider.
|
| protected transient int | serializable
Hides java. BeanContextServceProvider.
|
| private static final long | serialVersionUID
Hides java. |
| protected transient HashMap | services
all accesses to the |
| Access | Constructor and Description |
|---|---|
| public | BeanContextServicesSupport(BeanContextServices
The peer BeanContext we are supplying an implementation for, if null the this object is its own peer peer, Locale The current Locale for this BeanContext. lcle, boolean The initial state, true if in design mode, false if runtime. dTime, boolean The initial visibility. visible)
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Construct a BeanContextServicesSupport instance |
| public | BeanContextServicesSupport(BeanContextServices
The peer BeanContext we are supplying an implementation for, if null the this object is its own peer peer, Locale The current Locale for this BeanContext. lcle, boolean The initial state, true if in design mode, false if runtime. dtime)
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Create an instance using the specified Locale and design mode. |
| public | BeanContextServicesSupport(BeanContextServices
The peer BeanContext we are supplying an implementation for, if null the this object is its own peer peer, Locale The current Locale for this BeanContext. lcle)
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Create an instance using the specified locale |
| public | BeanContextServicesSupport(BeanContextServices
The peer BeanContext we are supplying an implementation for, if null the this object is its own peer peer)
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Create an instance with a peer |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addBeanContextServicesListener(BeanContextServicesListener bcsl)
Implements java.
References Deprecated
BeanContextServicesListener is deprecated or references (maybe indirectly) at least one deprecated element.
add a BeanContextServicesListener |
| public boolean | addService(Class<?>
the service class serviceClass, BeanContextServiceProvider the service provider bcsp)Implements java.
References Deprecated
BeanContextServiceProvider is deprecated or references (maybe indirectly) at least one deprecated element.
add a service |
| protected boolean | Returns: true if the service was successfully addedthe service class serviceClass, BeanContextServiceProvider the service provider bcsp, boolean whether or not an event should be fired fireEvent)
References Deprecated
BeanContextServiceProvider is deprecated or references (maybe indirectly) at least one deprecated element.
add a service |
| protected synchronized void | bcsPreDeserializationHook(ObjectInputStream ois)
Overrides java. called from BeanContextSupport readObject before it deserializes the children ... |
| protected synchronized void | bcsPreSerializationHook(ObjectOutputStream oos)
Overrides java. called from BeanContextSupport writeObject before it serializes the children ... |
| protected void | childJustRemovedHook(Object child, BeanContextSupport.
Overrides java. called from superclass child removal operations after a child has been successfully removed. |
| protected BeanContextSupport. | createBCSChild(Object
the child to create the Child on behalf of targetChild, Object the peer if the targetChild and peer are related by BeanContextProxy peer)Overrides java. Subclasses can override this method to insert their own subclass of Child without having to override add() or the other Collection methods that add children to the set. |
| protected BeanContextServicesSupport. | Returns: a service provider without overriding addService()the class sc, BeanContextServiceProvider the service provider bcsp)
References Deprecated
BeanContextServiceProvider is deprecated or references (maybe indirectly) at least one deprecated element.
subclasses can override this method to create new subclasses of BCSSServiceProvider without having to override addService() in order to instantiate. |
| protected final void | fireServiceAdded(Class<?>
the service class serviceClass)Fires a |
| protected final void | fireServiceAdded(BeanContextServiceAvailableEvent
the bcssae)BeanContextServiceAvailableEvent
References Deprecated
BeanContextServiceAvailableEvent is deprecated or references (maybe indirectly) at least one deprecated element.
Fires a |
| protected final void | fireServiceRevoked(BeanContextServiceRevokedEvent
the bcsre)BeanContextServiceRevokedEvent
References Deprecated
BeanContextServiceRevokedEvent is deprecated or references (maybe indirectly) at least one deprecated element.
Fires a |
| protected final void | fireServiceRevoked(Class<?>
the service class serviceClass, boolean whether or not the event should be revoked now revokeNow)Fires a |
| public BeanContextServices | Returns: the instance ofBeanContext
this object is providing the implementation for.
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the |
| protected static final BeanContextServicesListener | Returns: the BeanContextServicesListener (if any) of the specified childthe specified child child)
References Deprecated
BeanContextServicesListener is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the |
| public Iterator | Returns: an iterator for all the currently registered service classes.Implements java. Gets the currently available services for this context. |
| public Iterator | Returns: an iterator for all the currently available service selectors (if any) available for the specified service.Implements java. Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider. |
| public Object | getService(BeanContextChild child, Object requestor, Class<?> serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl)
Implements java.
References Deprecated
BeanContextChild and BeanContextServiceRevokedListener are deprecated or reference (maybe indirectly) at least one deprecated element.
obtain a service which may be delegated |
| public synchronized boolean | hasService(Class<?> serviceClass)
Implements java. has a service, which may be delegated |
| public void | initialize()
Overrides java. called by BeanContextSupport superclass during construction and deserialization to initialize subclass transient state. |
| protected synchronized void | initializeBeanContextResources()
Overrides java. called from setBeanContext to notify a BeanContextChild to allocate resources obtained from the nesting BeanContext. |
| private synchronized void | readObject(ObjectInputStream
the ois)ObjectInputStream to readHides java. Deserialize the instance. |
| protected synchronized void | releaseBeanContextResources()
Overrides java. called from setBeanContext to notify a BeanContextChild to release resources obtained from the nesting BeanContext. |
| public void | releaseService(BeanContextChild child, Object requestor, Object service)
Implements java.
References Deprecated
BeanContextChild is deprecated or references (maybe indirectly) at least one deprecated element.
release a service |
| public void | removeBeanContextServicesListener(BeanContextServicesListener bcsl)
Implements java.
References Deprecated
BeanContextServicesListener is deprecated or references (maybe indirectly) at least one deprecated element.
remove a BeanContextServicesListener |
| public void | revokeService(Class<?>
the service class serviceClass, BeanContextServiceProvider the service provider bcsp, boolean whether or not to revoke the service revokeCurrentServicesNow)Implements java.
References Deprecated
BeanContextServiceProvider is deprecated or references (maybe indirectly) at least one deprecated element.
remove a service |
| public void | serviceAvailable(BeanContextServiceAvailableEvent bcssae)
Overrides java. Implements java.
References Deprecated
BeanContextServiceAvailableEvent is deprecated or references (maybe indirectly) at least one deprecated element.
BeanContextServicesListener callback, propagates event to all currently registered listeners and BeanContextServices children, if this BeanContextService does not already implement this service itself. |
| public void | serviceRevoked(BeanContextServiceRevokedEvent bcssre)
Overrides java. Implements java.
References Deprecated
BeanContextServiceRevokedEvent is deprecated or references (maybe indirectly) at least one deprecated element.
BeanContextServicesListener callback, propagates event to all currently registered listeners and BeanContextServices children, if this BeanContextService does not already implement this service itself. |
| private synchronized void | writeObject(ObjectOutputStream
the oos)ObjectOutputStream to writeHides java. Serialize the instance. |