Deprecated
for removal since 23.
This is a general support class to provide support for implementing the BeanContextChild protocol. This class may either be directly subclassed, or encapsulated and delegated to in order to implement this interface for a given component.
java.beans.beancontext.BeanContext , java.beans.beancontext.BeanContextServices , java.beans.beancontext.BeanContextChild
| Modifier and Type | Field and Description |
|---|---|
| protected transient BeanContext | beanContext
References Deprecated
The bean context.
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public BeanContextChild | beanContextChildPeer
References Deprecated
The BeanContextChild is deprecated or references (maybe indirectly) at least one deprecated element.
BeanContext in which
this BeanContextChild is nested.
|
| protected PropertyChangeSupport | pcSupport
The |
| protected transient boolean | rejectedSetBCOnce
A flag indicating that there has been
at least one |
| private static final long | serialVersionUID
Use serialVersionUID from JDK 1.2 for interoperability. |
| protected VetoableChangeSupport | vcSupport
The |
| Access | Constructor and Description |
|---|---|
| public | BeanContextChildSupport()
construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself. |
| public | BeanContextChildSupport(BeanContextChild
the underlying bean context child bcc)
References Deprecated
BeanContextChild is deprecated or references (maybe indirectly) at least one deprecated element.
construct a BeanContextChildSupport where the JavaBean component itself implements BeanContextChild, and encapsulates this, delegating that interface to this implementation |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(String
The name of the property to listen on name, PropertyChangeListener The pcl)PropertyChangeListener to be addedImplements java. Add a PropertyChangeListener for a specific property. |
| public void | addVetoableChangeListener(String
The name of the property to listen on name, VetoableChangeListener The vcl)VetoableChangeListener to be addedImplements java. Add a VetoableChangeListener for a specific property. |
| public void | firePropertyChange(String
The programmatic name of the property that was changed name, Object The old value of the property oldValue, Object The new value of the property newValue)Report a bound property update to any registered listeners. |
| public void | fireVetoableChange(String
The programmatic name of the property that is about to
change name, Object The old value of the property oldValue, Object - The new value of the property newValue)Report a vetoable property update to any registered listeners. |
| public synchronized BeanContext | Returns: the nestingBeanContext for
this BeanContextChildSupport.Implements java.
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the nesting |
| public BeanContextChild | Returns: theBeanContextChild peer of this class
References Deprecated
BeanContextChild is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the |
| protected void | initializeBeanContextResources()
This method may be overridden by subclasses to provide their own initialization behaviors. |
| public boolean | Returns: true if this class is a delegate of anotherReports whether or not this class is a delegate of another. |
| private void | readObject(ObjectInputStream
the ois)ObjectInputStream to readRestore a persistent object, must wait for subsequent setBeanContext() to fully restore any resources obtained from the new nesting BeanContext. |
| protected void | releaseBeanContextResources()
This method may be overridden by subclasses to provide their own release behaviors. |
| public void | removePropertyChangeListener(String
The name of the property that was listened on name, PropertyChangeListener The PropertyChangeListener to be removed pcl)Implements java. Remove a PropertyChangeListener for a specific property. |
| public void | removeVetoableChangeListener(String
The name of the property that was listened on name, VetoableChangeListener The vcl)VetoableChangeListener to be removedImplements java. Removes a |
| public void | serviceAvailable(BeanContextServiceAvailableEvent
The BeanContextServiceAvailableEvent fired as a
result of a service becoming available bcsae)Implements java.
References Deprecated
BeanContextServiceAvailableEvent is deprecated or references (maybe indirectly) at least one deprecated element.
A new service is available from the nesting BeanContext. |
| public void | serviceRevoked(BeanContextServiceRevokedEvent
The bcsre)BeanContextServiceRevokedEvent fired as a
result of a service being revokedImplements java.
References Deprecated
BeanContextServiceRevokedEvent is deprecated or references (maybe indirectly) at least one deprecated element.
A service provided by the nesting BeanContext has been revoked. |
| public synchronized void | setBeanContext(BeanContext
the new value to be assigned to the bc)BeanContext
propertyImplements java.
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Sets the |
| public boolean | Returns: true if the change operation is to be vetoedthe new value that has been requested for
the BeanContext property newValue)
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value. |
| private void | writeObject(ObjectOutputStream
the oos)ObjectOutputStream to writeWrite the persistence state of the object. |
| beanContext | back to summary |
|---|---|
| protected transient BeanContext beanContext
References Deprecated
See corresponding docs for further information. The bean context. | |
| beanContextChildPeer | back to summary |
|---|---|
| public BeanContextChild beanContextChildPeer
References Deprecated
See corresponding docs for further information. The
| |
| pcSupport | back to summary |
|---|---|
| protected PropertyChangeSupport pcSupport The | |
| rejectedSetBCOnce | back to summary |
|---|---|
| protected transient boolean rejectedSetBCOnce A flag indicating that there has been
at least one | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Use serialVersionUID from JDK 1.2 for interoperability. | |
| vcSupport | back to summary |
|---|---|
| protected VetoableChangeSupport vcSupport The | |
| BeanContextChildSupport | back to summary |
|---|---|
| public BeanContextChildSupport() construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself. | |
| BeanContextChildSupport | back to summary |
|---|---|
| public BeanContextChildSupport(BeanContextChild bcc)
References Deprecated
See corresponding docs for further information. construct a BeanContextChildSupport where the JavaBean component itself implements BeanContextChild, and encapsulates this, delegating that interface to this implementation
| |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(String name, PropertyChangeListener pcl) Implements java. Add a PropertyChangeListener for a specific property.
The same listener object may be added more than once. For each
property, the listener will be invoked the number of times it was added
for that property.
If
| |
| addVetoableChangeListener | back to summary |
|---|---|
| public void addVetoableChangeListener(String name, VetoableChangeListener vcl) Implements java. Add a VetoableChangeListener for a specific property.
The same listener object may be added more than once. For each
property, the listener will be invoked the number of times it was added
for that property.
If
| |
| firePropertyChange | back to summary |
|---|---|
| public void firePropertyChange(String name, Object oldValue, Object newValue) Report a bound property update to any registered listeners. No event is fired if old and new are equal and non-null. | |
| fireVetoableChange | back to summary |
|---|---|
| public void fireVetoableChange(String name, Object oldValue, Object newValue) throws PropertyVetoException Report a vetoable property update to any registered listeners. If anyone vetos the change, then fire a new event reverting everyone to the old value and then rethrow the PropertyVetoException. No event is fired if old and new are equal and non-null.
| |
| getBeanContext | back to summary |
|---|---|
| public synchronized BeanContext getBeanContext() Implements java. References Deprecated
See corresponding docs for further information. Gets the nesting
| |
| getBeanContextChildPeer | back to summary |
|---|---|
| public BeanContextChild getBeanContextChildPeer()
References Deprecated
See corresponding docs for further information. Gets the
| |
| initializeBeanContextResources | back to summary |
|---|---|
| protected void initializeBeanContextResources() This method may be overridden by subclasses to provide their own initialization behaviors. When invoked any resources required by the BeanContextChild should be obtained from the current BeanContext. | |
| isDelegated | back to summary |
|---|---|
| public boolean isDelegated() Reports whether or not this class is a delegate of another.
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException Restore a persistent object, must wait for subsequent setBeanContext() to fully restore any resources obtained from the new nesting BeanContext.
| |
| releaseBeanContextResources | back to summary |
|---|---|
| protected void releaseBeanContextResources() This method may be overridden by subclasses to provide their own release behaviors. When invoked any resources held by this instance obtained from its current BeanContext property should be released since the object is no longer nested within that BeanContext. | |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(String name, PropertyChangeListener pcl) Implements java. Remove a PropertyChangeListener for a specific property.
If
| |
| removeVetoableChangeListener | back to summary |
|---|---|
| public void removeVetoableChangeListener(String name, VetoableChangeListener vcl) Implements java. Removes a
| |
| serviceAvailable | back to summary |
|---|---|
| public void serviceAvailable(BeanContextServiceAvailableEvent bcsae) Implements java. References Deprecated
See corresponding docs for further information. A new service is available from the nesting BeanContext. Subclasses may override this method in order to implement their own behaviors
| |
| serviceRevoked | back to summary |
|---|---|
| public void serviceRevoked(BeanContextServiceRevokedEvent bcsre) Implements java. References Deprecated
See corresponding docs for further information. A service provided by the nesting BeanContext has been revoked. Subclasses may override this method in order to implement their own behaviors.
| |
| setBeanContext | back to summary |
|---|---|
| public synchronized void setBeanContext(BeanContext bc) throws PropertyVetoException Implements java. References Deprecated
See corresponding docs for further information. Sets the
| |
| validatePendingSetBeanContext | back to summary |
|---|---|
| public boolean validatePendingSetBeanContext(BeanContext newValue)
References Deprecated
See corresponding docs for further information. Called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value. Returning false will cause setBeanContext to throw PropertyVetoException.
| |
| writeObject | back to summary |
|---|---|
| private void writeObject(ObjectOutputStream oos) throws IOException Write the persistence state of the object.
| |