BeanContextServicesSupport (Java Platform SE 8 ) (original) (raw)
Modifier and Type
Method
Description
void
[addBeanContextServicesListener](../../../java/beans/beancontext/BeanContextServicesSupport.html#addBeanContextServicesListener-java.beans.beancontext.BeanContextServicesListener-)([BeanContextServicesListener](../../../java/beans/beancontext/BeanContextServicesListener.html "interface in java.beans.beancontext") bcsl)
add a BeanContextServicesListener
boolean
[addService](../../../java/beans/beancontext/BeanContextServicesSupport.html#addService-java.lang.Class-java.beans.beancontext.BeanContextServiceProvider-)([Class](../../../java/lang/Class.html "class in java.lang") serviceClass,[BeanContextServiceProvider](../../../java/beans/beancontext/BeanContextServiceProvider.html "interface in java.beans.beancontext") bcsp)
add a service
protected boolean
[addService](../../../java/beans/beancontext/BeanContextServicesSupport.html#addService-java.lang.Class-java.beans.beancontext.BeanContextServiceProvider-boolean-)([Class](../../../java/lang/Class.html "class in java.lang") serviceClass,[BeanContextServiceProvider](../../../java/beans/beancontext/BeanContextServiceProvider.html "interface in java.beans.beancontext") bcsp, boolean fireEvent)
add a service
protected void
[bcsPreDeserializationHook](../../../java/beans/beancontext/BeanContextServicesSupport.html#bcsPreDeserializationHook-java.io.ObjectInputStream-)([ObjectInputStream](../../../java/io/ObjectInputStream.html "class in java.io") ois)
called from BeanContextSupport readObject before it deserializes the children ...
protected void
[bcsPreSerializationHook](../../../java/beans/beancontext/BeanContextServicesSupport.html#bcsPreSerializationHook-java.io.ObjectOutputStream-)([ObjectOutputStream](../../../java/io/ObjectOutputStream.html "class in java.io") oos)
called from BeanContextSupport writeObject before it serializes the children ...
protected void
[childJustRemovedHook](../../../java/beans/beancontext/BeanContextServicesSupport.html#childJustRemovedHook-java.lang.Object-java.beans.beancontext.BeanContextSupport.BCSChild-)([Object](../../../java/lang/Object.html "class in java.lang") child,[BeanContextSupport.BCSChild](../../../java/beans/beancontext/BeanContextSupport.BCSChild.html "class in java.beans.beancontext") bcsc)
called from superclass child removal operations after a child has been successfully removed.
protected [BeanContextSupport.BCSChild](../../../java/beans/beancontext/BeanContextSupport.BCSChild.html "class in java.beans.beancontext")
[createBCSChild](../../../java/beans/beancontext/BeanContextServicesSupport.html#createBCSChild-java.lang.Object-java.lang.Object-)([Object](../../../java/lang/Object.html "class in java.lang") targetChild,[Object](../../../java/lang/Object.html "class in java.lang") peer)
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](../../../java/beans/beancontext/BeanContextServicesSupport.BCSSServiceProvider.html "class in java.beans.beancontext")
[createBCSSServiceProvider](../../../java/beans/beancontext/BeanContextServicesSupport.html#createBCSSServiceProvider-java.lang.Class-java.beans.beancontext.BeanContextServiceProvider-)([Class](../../../java/lang/Class.html "class in java.lang") sc,[BeanContextServiceProvider](../../../java/beans/beancontext/BeanContextServiceProvider.html "interface in java.beans.beancontext") bcsp)
subclasses can override this method to create new subclasses of BCSSServiceProvider without having to override addService() in order to instantiate.
protected void
[fireServiceAdded](../../../java/beans/beancontext/BeanContextServicesSupport.html#fireServiceAdded-java.beans.beancontext.BeanContextServiceAvailableEvent-)([BeanContextServiceAvailableEvent](../../../java/beans/beancontext/BeanContextServiceAvailableEvent.html "class in java.beans.beancontext") bcssae)
Fires a
BeanContextServiceAvailableEvent
indicating that a new service has become available.
protected void
[fireServiceAdded](../../../java/beans/beancontext/BeanContextServicesSupport.html#fireServiceAdded-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang") serviceClass)
Fires a
BeanContextServiceEvent
notifying of a new service.
protected void
[fireServiceRevoked](../../../java/beans/beancontext/BeanContextServicesSupport.html#fireServiceRevoked-java.beans.beancontext.BeanContextServiceRevokedEvent-)([BeanContextServiceRevokedEvent](../../../java/beans/beancontext/BeanContextServiceRevokedEvent.html "class in java.beans.beancontext") bcsre)
Fires a
BeanContextServiceEvent
notifying of a service being revoked.
protected void
[fireServiceRevoked](../../../java/beans/beancontext/BeanContextServicesSupport.html#fireServiceRevoked-java.lang.Class-boolean-)([Class](../../../java/lang/Class.html "class in java.lang") serviceClass, boolean revokeNow)
Fires a
BeanContextServiceRevokedEvent
indicating that a particular service is no longer available.
[BeanContextServices](../../../java/beans/beancontext/BeanContextServices.html "interface in java.beans.beancontext")
[getBeanContextServicesPeer](../../../java/beans/beancontext/BeanContextServicesSupport.html#getBeanContextServicesPeer--)()
Gets the
BeanContextServices
associated with this
BeanContextServicesSupport
.
protected static [BeanContextServicesListener](../../../java/beans/beancontext/BeanContextServicesListener.html "interface in java.beans.beancontext")
[getChildBeanContextServicesListener](../../../java/beans/beancontext/BeanContextServicesSupport.html#getChildBeanContextServicesListener-java.lang.Object-)([Object](../../../java/lang/Object.html "class in java.lang") child)
Gets the
BeanContextServicesListener
(if any) of the specified child.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getCurrentServiceClasses](../../../java/beans/beancontext/BeanContextServicesSupport.html#getCurrentServiceClasses--)()
Gets the currently available services for this context.
[Iterator](../../../java/util/Iterator.html "interface in java.util")
[getCurrentServiceSelectors](../../../java/beans/beancontext/BeanContextServicesSupport.html#getCurrentServiceSelectors-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang") serviceClass)
Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.
[Object](../../../java/lang/Object.html "class in java.lang")
[getService](../../../java/beans/beancontext/BeanContextServicesSupport.html#getService-java.beans.beancontext.BeanContextChild-java.lang.Object-java.lang.Class-java.lang.Object-java.beans.beancontext.BeanContextServiceRevokedListener-)([BeanContextChild](../../../java/beans/beancontext/BeanContextChild.html "interface in java.beans.beancontext") child,[Object](../../../java/lang/Object.html "class in java.lang") requestor,[Class](../../../java/lang/Class.html "class in java.lang") serviceClass,[Object](../../../java/lang/Object.html "class in java.lang") serviceSelector,[BeanContextServiceRevokedListener](../../../java/beans/beancontext/BeanContextServiceRevokedListener.html "interface in java.beans.beancontext") bcsrl)
obtain a service which may be delegated
boolean
[hasService](../../../java/beans/beancontext/BeanContextServicesSupport.html#hasService-java.lang.Class-)([Class](../../../java/lang/Class.html "class in java.lang") serviceClass)
has a service, which may be delegated
void
[initialize](../../../java/beans/beancontext/BeanContextServicesSupport.html#initialize--)()
called by BeanContextSupport superclass during construction and deserialization to initialize subclass transient state.
protected void
[initializeBeanContextResources](../../../java/beans/beancontext/BeanContextServicesSupport.html#initializeBeanContextResources--)()
called from setBeanContext to notify a BeanContextChild to allocate resources obtained from the nesting BeanContext.
protected void
[releaseBeanContextResources](../../../java/beans/beancontext/BeanContextServicesSupport.html#releaseBeanContextResources--)()
called from setBeanContext to notify a BeanContextChild to release resources obtained from the nesting BeanContext.
void
[releaseService](../../../java/beans/beancontext/BeanContextServicesSupport.html#releaseService-java.beans.beancontext.BeanContextChild-java.lang.Object-java.lang.Object-)([BeanContextChild](../../../java/beans/beancontext/BeanContextChild.html "interface in java.beans.beancontext") child,[Object](../../../java/lang/Object.html "class in java.lang") requestor,[Object](../../../java/lang/Object.html "class in java.lang") service)
release a service
void
[removeBeanContextServicesListener](../../../java/beans/beancontext/BeanContextServicesSupport.html#removeBeanContextServicesListener-java.beans.beancontext.BeanContextServicesListener-)([BeanContextServicesListener](../../../java/beans/beancontext/BeanContextServicesListener.html "interface in java.beans.beancontext") bcsl)
remove a BeanContextServicesListener
void
[revokeService](../../../java/beans/beancontext/BeanContextServicesSupport.html#revokeService-java.lang.Class-java.beans.beancontext.BeanContextServiceProvider-boolean-)([Class](../../../java/lang/Class.html "class in java.lang") serviceClass,[BeanContextServiceProvider](../../../java/beans/beancontext/BeanContextServiceProvider.html "interface in java.beans.beancontext") bcsp, boolean revokeCurrentServicesNow)
remove a service
void
[serviceAvailable](../../../java/beans/beancontext/BeanContextServicesSupport.html#serviceAvailable-java.beans.beancontext.BeanContextServiceAvailableEvent-)([BeanContextServiceAvailableEvent](../../../java/beans/beancontext/BeanContextServiceAvailableEvent.html "class in java.beans.beancontext") bcssae)
BeanContextServicesListener callback, propagates event to all currently registered listeners and BeanContextServices children, if this BeanContextService does not already implement this service itself.
void
[serviceRevoked](../../../java/beans/beancontext/BeanContextServicesSupport.html#serviceRevoked-java.beans.beancontext.BeanContextServiceRevokedEvent-)([BeanContextServiceRevokedEvent](../../../java/beans/beancontext/BeanContextServiceRevokedEvent.html "class in java.beans.beancontext") bcssre)
BeanContextServicesListener callback, propagates event to all currently registered listeners and BeanContextServices children, if this BeanContextService does not already implement this service itself.