org.ejtools.beans.beancontext
Class CustomBeanContextServicesSupport

java.lang.Object
  |
  +--java.beans.beancontext.BeanContextChildSupport
        |
        +--java.beans.beancontext.BeanContextSupport
              |
              +--java.beans.beancontext.BeanContextServicesSupport
                    |
                    +--org.ejtools.beans.beancontext.CustomBeanContextServicesSupport
All Implemented Interfaces:
java.beans.beancontext.BeanContext, java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextServiceRevokedListener, java.beans.beancontext.BeanContextServices, java.beans.beancontext.BeanContextServicesListener, java.util.Collection, java.beans.DesignMode, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable, Storable, java.beans.VetoableChangeListener, java.beans.Visibility
Direct Known Subclasses:
CustomBeanContextServiceProvider

public abstract class CustomBeanContextServicesSupport
extends java.beans.beancontext.BeanContextServicesSupport
implements Storable

Enhancement of the BeanContextServicesSupport to provide an implementation for the clear method, and a recursive search for a particular service.

Version:
$Revision: 1.9 $
Author:
Laurent Etiemble
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.beans.beancontext.BeanContextServicesSupport
bcsListeners, proxy, serializable, services
 
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 java.beans.beancontext.BeanContext
globalHierarchyLock
 
Fields inherited from interface java.beans.DesignMode
PROPERTYNAME
 
Constructor Summary
CustomBeanContextServicesSupport()
           
 
Method Summary
 void accept(StoreVisitor visitor)
          Description of the Method
 void clear()
          Implementation of the clear method
 java.lang.Object getService(java.beans.beancontext.BeanContextChild child, java.lang.Object requestor, java.lang.Class serviceClass, java.lang.Object serviceSelector, java.beans.beancontext.BeanContextServiceRevokedListener bcsrl)
          Gets the BeanContext service recursivly if necessary.
 
Methods inherited from class java.beans.beancontext.BeanContextServicesSupport
addBeanContextServicesListener, addService, addService, bcsPreDeserializationHook, bcsPreSerializationHook, childJustRemovedHook, createBCSChild, createBCSSServiceProvider, fireServiceAdded, fireServiceAdded, fireServiceRevoked, fireServiceRevoked, getBeanContextServicesPeer, getChildBeanContextServicesListener, getCurrentServiceClasses, getCurrentServiceSelectors, hasService, initialize, initializeBeanContextResources, releaseBeanContextResources, releaseService, removeBeanContextServicesListener, revokeService, serviceAvailable, serviceRevoked
 
Methods inherited from class java.beans.beancontext.BeanContextSupport
add, addAll, addBeanContextMembershipListener, avoidingGui, bcsChildren, childDeserializedHook, childJustAddedHook, classEquals, contains, containsAll, containsKey, copyChildren, deserialize, dontUseGui, fireChildrenAdded, fireChildrenRemoved, getBeanContextPeer, getChildBeanContextChild, getChildBeanContextMembershipListener, getChildPropertyChangeListener, getChildSerializable, getChildVetoableChangeListener, getChildVisibility, getLocale, getResource, getResourceAsStream, 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, isDelegated, removePropertyChangeListener, removeVetoableChangeListener, 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, 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
 

Constructor Detail

CustomBeanContextServicesSupport

public CustomBeanContextServicesSupport()
Method Detail

accept

public void accept(StoreVisitor visitor)
Description of the Method

Specified by:
accept in interface Storable
Parameters:
visitor - Description of the Parameter

clear

public void clear()
Implementation of the clear method

Specified by:
clear in interface java.util.Collection
Overrides:
clear in class java.beans.beancontext.BeanContextSupport

getService

public java.lang.Object getService(java.beans.beancontext.BeanContextChild child,
                                   java.lang.Object requestor,
                                   java.lang.Class serviceClass,
                                   java.lang.Object serviceSelector,
                                   java.beans.beancontext.BeanContextServiceRevokedListener bcsrl)
                            throws java.util.TooManyListenersException
Gets the BeanContext service recursivly if necessary.

Specified by:
getService in interface java.beans.beancontext.BeanContextServices
Overrides:
getService in class java.beans.beancontext.BeanContextServicesSupport
Parameters:
child - Description of Parameter
requestor - Description of Parameter
serviceClass - Description of Parameter
serviceSelector - Description of Parameter
bcsrl - Description of Parameter
Returns:
The value
Throws:
java.util.TooManyListenersException - Description of Exception Object,BeanContextServiceRevokedListener)


Copyright © 2002-2003 EJTools Org.. All Rights Reserved.