|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object![]()
![]()
![]()
java.beans.beancontext.BeanContextChildSupport
![]()
![]()
![]()
java.beans.beancontext.BeanContextSupport
![]()
![]()
![]()
java.beans.beancontext.BeanContextServicesSupport
, BeanContextChild
, BeanContextServiceRevokedListener
, BeanContextServices
, BeanContextServicesListener
, DesignMode
, PropertyChangeListener
, VetoableChangeListener
, Visibility
, Serializable
, Iterable
, Collection
, EventListener

public class BeanContextServicesSupport


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.
| Nested Class Summary | |
|---|---|
protected class |
BeanContextServicesSupport.BCSSChild
|
protected class |
BeanContextServicesSupport.BCSSProxyServiceProvider
|
protected static class |
BeanContextServicesSupport.BCSSServiceProvider
subclasses may subclass this nested class to add behaviors for each BeanContextServicesProvider. |
Nested classes/interfaces inherited from class java.beans.beancontext.BeanContextSupport ![]() |
|---|
BeanContextSupport.BCSChild |
| Field Summary | |
|---|---|
protected ArrayList |
bcsListeners
List of BeanContextServicesListener objects. |
protected BeanContextServicesSupport.BCSSProxyServiceProvider |
proxy
Delegate for the BeanContextServiceProvider. |
protected int |
serializable
The number of instances of a serializable BeanContextServceProvider. |
protected HashMap |
services
all accesses to the protected transient HashMap services
field should be synchronized on that object |
Fields inherited from class java.beans.beancontext.BeanContextSupport ![]() |
|---|
bcmListeners |
Fields inherited from class java.beans.beancontext.BeanContextChildSupport ![]() |
|---|
beanContext |
Fields inherited from interface java.beans.beancontext.BeanContext ![]() |
|---|
globalHierarchyLock |
Fields inherited from interface java.beans.DesignMode ![]() |
|---|
PROPERTYNAME |
| Constructor Summary | |
|---|---|
BeanContextServicesSupport
Create an instance that is not a delegate of another object |
|
BeanContextServicesSupport
Create an instance with a peer |
|
BeanContextServicesSupport
Create an instance using the specified locale |
|
BeanContextServicesSupport
Create an instance using the specified Locale and design mode. |
|
BeanContextServicesSupport
Construct a BeanContextServicesSupport instance |
|
| Method Summary | |
|---|---|
void |
addBeanContextServicesListener
add a BeanContextServicesListener |
boolean |
addService
add a service |
protected boolean |
addService
add a service |
protected void |
bcsPreDeserializationHook
called from BeanContextSupport readObject before it deserializes the children ... |
protected void |
bcsPreSerializationHook
called from BeanContextSupport writeObject before it serializes the children ... |
protected void |
childJustRemovedHook
called from superclass child removal operations after a child has been successfully removed. |
protected BeanContextSupport.BCSChild |
createBCSChild
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.BCSSServiceProvider |
createBCSSServiceProvider
subclasses can override this method to create new subclasses of BCSSServiceProvider without having to overrride addService() in order to instantiate. |
protected void |
fireServiceAdded
Fires a BeanContextServiceAvailableEvent indicating that a new service has become available. |
protected void |
fireServiceAdded
Fires a BeanContextServiceEvent notifying of a new service. |
protected void |
fireServiceRevoked
Fires a BeanContextServiceEvent notifying of a service being revoked. |
protected void |
fireServiceRevoked
Fires a BeanContextServiceRevokedEvent indicating that a particular service is no longer available. |
BeanContextServices |
getBeanContextServicesPeer
Gets the BeanContextServices associated with this BeanContextServicesSupport. |
protected static BeanContextServicesListener |
getChildBeanContextServicesListener
Gets the BeanContextServicesListener (if any) of the specified child. |
Iterator |
getCurrentServiceClasses
Gets the currently available services for this context. |
Iterator |
getCurrentServiceSelectors
Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider. |
Object |
getService
obtain a service which may be delegated |
boolean |
hasService
has a service, which may be delegated |
void |
initialize
called by BeanContextSupport superclass during construction and deserialization to initialize subclass transient state. |
protected void |
initializeBeanContextResources
called from setBeanContext to notify a BeanContextChild to allocate resources obtained from the nesting BeanContext. |
protected void |
releaseBeanContextResources
called from setBeanContext to notify a BeanContextChild to release resources obtained from the nesting BeanContext. |
void |
releaseService
release a service |
void |
removeBeanContextServicesListener
remove a BeanContextServicesListener |
void |
revokeService
remove a service |
void |
serviceAvailable
BeanContextServicesListener callback, propagates event to all currently registered listeners and BeanContextServices children, if this BeanContextService does not already implement this service itself. |
void |
serviceRevoked
BeanContextServicesListener callback, propagates event to all currently registered listeners and BeanContextServices children, if this BeanContextService does not already implement this service itself. |
Methods inherited from class java.beans.beancontext.BeanContextSupport ![]() |
|---|
add |