java.beans.beancontext
Class BeanContextChildSupport

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by java.beans.beancontext.BeanContextChildSupport
All Implemented Interfaces:
BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild , BeanContextServiceRevokedListener sample code for java.beans.beancontext.BeanContextServiceRevokedListener definition code for java.beans.beancontext.BeanContextServiceRevokedListener , BeanContextServicesListener sample code for java.beans.beancontext.BeanContextServicesListener definition code for java.beans.beancontext.BeanContextServicesListener , Serializable sample code for java.io.Serializable definition code for java.io.Serializable , EventListener sample code for java.util.EventListener definition code for java.util.EventListener
Direct Known Subclasses:
BeanContextSupport sample code for java.beans.beancontext.BeanContextSupport definition code for java.beans.beancontext.BeanContextSupport

public class BeanContextChildSupport
extends Object sample code for java.lang.Object definition code for java.lang.Object
implements BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild , BeanContextServicesListener sample code for java.beans.beancontext.BeanContextServicesListener definition code for java.beans.beancontext.BeanContextServicesListener , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

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.

Since:
1.2
See Also:
BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext , BeanContextServices sample code for java.beans.beancontext.BeanContextServices definition code for java.beans.beancontext.BeanContextServices , BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild , Serialized Form

Field Summary
protected  BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext beanContext sample code for java.beans.beancontext.BeanContextChildSupport.beanContext definition code for java.beans.beancontext.BeanContextChildSupport.beanContext
           
 BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild beanContextChildPeer sample code for java.beans.beancontext.BeanContextChildSupport.beanContextChildPeer definition code for java.beans.beancontext.BeanContextChildSupport.beanContextChildPeer
          The BeanContext in which this BeanContextChild is nested.
protected  PropertyChangeSupport sample code for java.beans.PropertyChangeSupport definition code for java.beans.PropertyChangeSupport pcSupport sample code for java.beans.beancontext.BeanContextChildSupport.pcSupport definition code for java.beans.beancontext.BeanContextChildSupport.pcSupport
          The PropertyChangeSupport associated with this BeanContextChildSupport.
protected  boolean rejectedSetBCOnce sample code for java.beans.beancontext.BeanContextChildSupport.rejectedSetBCOnce definition code for java.beans.beancontext.BeanContextChildSupport.rejectedSetBCOnce
          A flag indicating that there has been at least one PropertyChangeVetoException thrown for the attempted setBeanContext operation.
protected  VetoableChangeSupport sample code for java.beans.VetoableChangeSupport definition code for java.beans.VetoableChangeSupport vcSupport sample code for java.beans.beancontext.BeanContextChildSupport.vcSupport definition code for java.beans.beancontext.BeanContextChildSupport.vcSupport
          The VetoableChangeSupport associated with this BeanContextChildSupport.
 
Constructor Summary
BeanContextChildSupport sample code for java.beans.beancontext.BeanContextChildSupport.BeanContextChildSupport() definition code for java.beans.beancontext.BeanContextChildSupport.BeanContextChildSupport() ()
          construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself.
BeanContextChildSupport sample code for java.beans.beancontext.BeanContextChildSupport.BeanContextChildSupport(java.beans.beancontext.BeanContextChild) definition code for java.beans.beancontext.BeanContextChildSupport.BeanContextChildSupport(java.beans.beancontext.BeanContextChild) (BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild  bcc)
          construct a BeanContextChildSupport where the JavaBean component itself implements BeanContextChild, and encapsulates this, delegating that interface to this implementation
 
Method Summary
 void addPropertyChangeListener sample code for java.beans.beancontext.BeanContextChildSupport.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.beans.beancontext.BeanContextChildSupport.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) (String sample code for java.lang.String definition code for java.lang.String  name, PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  pcl)
          Add a PropertyChangeListener for a specific property.
 void addVetoableChangeListener sample code for java.beans.beancontext.BeanContextChildSupport.addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) definition code for java.beans.beancontext.BeanContextChildSupport.addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) (String sample code for java.lang.String definition code for java.lang.String  name, VetoableChangeListener sample code for java.beans.VetoableChangeListener definition code for java.beans.VetoableChangeListener  vcl)
          Add a VetoableChangeListener for a specific property.
 void firePropertyChange sample code for java.beans.beancontext.BeanContextChildSupport.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.beans.beancontext.BeanContextChildSupport.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  name, Object sample code for java.lang.Object definition code for java.lang.Object  oldValue, Object sample code for java.lang.Object definition code for java.lang.Object  newValue)
          Report a bound property update to any registered listeners.
 void fireVetoableChange sample code for java.beans.beancontext.BeanContextChildSupport.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.beans.beancontext.BeanContextChildSupport.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  name, Object sample code for java.lang.Object definition code for java.lang.Object  oldValue, Object sample code for java.lang.Object definition code for java.lang.Object  newValue)
          Report a vetoable property update to any registered listeners.
 BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext getBeanContext sample code for java.beans.beancontext.BeanContextChildSupport.getBeanContext() definition code for java.beans.beancontext.BeanContextChildSupport.getBeanContext() ()
          Gets the nesting BeanContext for this BeanContextChildSupport.
 BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild getBeanContextChildPeer sample code for java.beans.beancontext.BeanContextChildSupport.getBeanContextChildPeer() definition code for java.beans.beancontext.BeanContextChildSupport.getBeanContextChildPeer() ()
          Gets the BeanContextChild associated with this BeanContextChildSupport.
protected  void initializeBeanContextResources sample code for java.beans.beancontext.BeanContextChildSupport.initializeBeanContextResources() definition code for java.beans.beancontext.BeanContextChildSupport.initializeBeanContextResources() ()
          This method may be overridden by subclasses to provide their own initialization behaviors.
 boolean isDelegated sample code for java.beans.beancontext.BeanContextChildSupport.isDelegated() definition code for java.beans.beancontext.BeanContextChildSupport.isDelegated() ()
          Reports whether or not this class is a delegate of another.
protected  void releaseBeanContextResources sample code for java.beans.beancontext.BeanContextChildSupport.releaseBeanContextResources() definition code for java.beans.beancontext.BeanContextChildSupport.releaseBeanContextResources() ()
          This method may be overridden by subclasses to provide their own release behaviors.
 void removePropertyChangeListener sample code for java.beans.beancontext.BeanContextChildSupport.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.beans.beancontext.BeanContextChildSupport.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) (String sample code for java.lang.String definition code for java.lang.String  name, PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  pcl)
          Remove a PropertyChangeListener for a specific property.
 void removeVetoableChangeListener sample code for java.beans.beancontext.BeanContextChildSupport.removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) definition code for java.beans.beancontext.BeanContextChildSupport.removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) (String sample code for java.lang.String definition code for java.lang.String  name, VetoableChangeListener sample code for java.beans.VetoableChangeListener definition code for java.beans.VetoableChangeListener  vcl)
          Removes a VetoableChangeListener.
 void serviceAvailable sample code for java.beans.beancontext.BeanContextChildSupport.serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent) definition code for java.beans.beancontext.BeanContextChildSupport.serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent) (BeanContextServiceAvailableEvent sample code for java.beans.beancontext.BeanContextServiceAvailableEvent definition code for java.beans.beancontext.BeanContextServiceAvailableEvent  bcsae)
          A new service is available from the nesting BeanContext.
 void serviceRevoked sample code for java.beans.beancontext.BeanContextChildSupport.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent) definition code for java.beans.beancontext.BeanContextChildSupport.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent) (BeanContextServiceRevokedEvent sample code for java.beans.beancontext.BeanContextServiceRevokedEvent definition code for java.beans.beancontext.BeanContextServiceRevokedEvent  bcsre)
          A service provided by the nesting BeanContext has been revoked.
 void setBeanContext sample code for java.beans.beancontext.BeanContextChildSupport.setBeanContext(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextChildSupport.setBeanContext(java.beans.beancontext.BeanContext) (BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc)
          Sets the BeanContext for this BeanContextChildSupport.
 boolean validatePendingSetBeanContext sample code for java.beans.beancontext.BeanContextChildSupport.validatePendingSetBeanContext(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextChildSupport.validatePendingSetBeanContext(java.beans.beancontext.BeanContext) (BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  newValue)
          Called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value.
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

beanContextChildPeer sample code for java.beans.beancontext.BeanContextChildSupport.beanContextChildPeer

public BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild  beanContextChildPeer
The BeanContext in which this BeanContextChild is nested.


pcSupport sample code for java.beans.beancontext.BeanContextChildSupport.pcSupport

protected PropertyChangeSupport sample code for java.beans.PropertyChangeSupport definition code for java.beans.PropertyChangeSupport  pcSupport
The PropertyChangeSupport associated with this BeanContextChildSupport.


vcSupport sample code for java.beans.beancontext.BeanContextChildSupport.vcSupport

protected VetoableChangeSupport sample code for java.beans.VetoableChangeSupport definition code for java.beans.VetoableChangeSupport  vcSupport
The VetoableChangeSupport associated with this BeanContextChildSupport.


beanContext sample code for java.beans.beancontext.BeanContextChildSupport.beanContext

protected transient BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  beanContext

rejectedSetBCOnce sample code for java.beans.beancontext.BeanContextChildSupport.rejectedSetBCOnce

protected transient boolean rejectedSetBCOnce
A flag indicating that there has been at least one PropertyChangeVetoException thrown for the attempted setBeanContext operation.

Constructor Detail

BeanContextChildSupport sample code for java.beans.beancontext.BeanContextChildSupport() definition code for java.beans.beancontext.BeanContextChildSupport()

public BeanContextChildSupport()
construct a BeanContextChildSupport where this class has been subclassed in order to implement the JavaBean component itself.


BeanContextChildSupport sample code for java.beans.beancontext.BeanContextChildSupport(java.beans.beancontext.BeanContextChild) definition code for java.beans.beancontext.BeanContextChildSupport(java.beans.beancontext.BeanContextChild)

public BeanContextChildSupport(BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild  bcc)
construct a BeanContextChildSupport where the JavaBean component itself implements BeanContextChild, and encapsulates this, delegating that interface to this implementation

Method Detail

setBeanContext sample code for java.beans.beancontext.BeanContextChildSupport.setBeanContext(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextChildSupport.setBeanContext(java.beans.beancontext.BeanContext)

public void setBeanContext(BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  bc)
                    throws PropertyVetoException sample code for java.beans.PropertyVetoException definition code for java.beans.PropertyVetoException 
Sets the BeanContext for this BeanContextChildSupport.

Specified by:
setBeanContext sample code for java.beans.beancontext.BeanContextChild.setBeanContext(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextChild.setBeanContext(java.beans.beancontext.BeanContext) in interface BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild
Parameters:
bc - the new value to be assigned to the BeanContext property
Throws:
PropertyVetoException - if the change is rejected
PropertyVetoException sample code for java.beans.PropertyVetoException definition code for java.beans.PropertyVetoException

getBeanContext sample code for java.beans.beancontext.BeanContextChildSupport.getBeanContext() definition code for java.beans.beancontext.BeanContextChildSupport.getBeanContext()

public BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  getBeanContext()
Gets the nesting BeanContext for this BeanContextChildSupport.

Specified by:
getBeanContext sample code for java.beans.beancontext.BeanContextChild.getBeanContext() definition code for java.beans.beancontext.BeanContextChild.getBeanContext() in interface BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild
Returns:
the nesting BeanContext for this BeanContextChildSupport.

addPropertyChangeListener sample code for java.beans.beancontext.BeanContextChildSupport.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.beans.beancontext.BeanContextChildSupport.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)

public void addPropertyChangeListener(String sample code for java.lang.String definition code for java.lang.String  name,
                                      PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  pcl)
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 name or pcl is null, no exception is thrown and no action is taken.

Specified by:
addPropertyChangeListener sample code for java.beans.beancontext.BeanContextChild.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.beans.beancontext.BeanContextChild.addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) in interface BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild
Parameters:
name - The name of the property to listen on
pcl - The PropertyChangeListener to be added

removePropertyChangeListener sample code for java.beans.beancontext.BeanContextChildSupport.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.beans.beancontext.BeanContextChildSupport.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)

public void removePropertyChangeListener(String sample code for java.lang.String definition code for java.lang.String  name,
                                         PropertyChangeListener sample code for java.beans.PropertyChangeListener definition code for java.beans.PropertyChangeListener  pcl)
Remove a PropertyChangeListener for a specific property. If pcl was added more than once to the same event source for the specified property, it will be notified one less time after being removed. If name is null, no exception is thrown and no action is taken. If pcl is null, or was never added for the specified property, no exception is thrown and no action is taken.

Specified by:
removePropertyChangeListener sample code for java.beans.beancontext.BeanContextChild.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) definition code for java.beans.beancontext.BeanContextChild.removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) in interface BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild
Parameters:
name - The name of the property that was listened on
pcl - The PropertyChangeListener to be removed

addVetoableChangeListener sample code for java.beans.beancontext.BeanContextChildSupport.addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) definition code for java.beans.beancontext.BeanContextChildSupport.addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener)

public void addVetoableChangeListener(String sample code for java.lang.String definition code for java.lang.String  name,
                                      VetoableChangeListener sample code for java.beans.VetoableChangeListener definition code for java.beans.VetoableChangeListener  vcl)
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 name or vcl is null, no exception is thrown and no action is taken.

Specified by:
addVetoableChangeListener sample code for java.beans.beancontext.BeanContextChild.addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) definition code for java.beans.beancontext.BeanContextChild.addVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) in interface BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild
Parameters:
name - The name of the property to listen on
vcl - The VetoableChangeListener to be added

removeVetoableChangeListener sample code for java.beans.beancontext.BeanContextChildSupport.removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) definition code for java.beans.beancontext.BeanContextChildSupport.removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener)

public void removeVetoableChangeListener(String sample code for java.lang.String definition code for java.lang.String  name,
                                         VetoableChangeListener sample code for java.beans.VetoableChangeListener definition code for java.beans.VetoableChangeListener  vcl)
Removes a VetoableChangeListener. If pcl was added more than once to the same event source for the specified property, it will be notified one less time after being removed. If name is null, no exception is thrown and no action is taken. If vcl is null, or was never added for the specified property, no exception is thrown and no action is taken.

Specified by:
removeVetoableChangeListener sample code for java.beans.beancontext.BeanContextChild.removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) definition code for java.beans.beancontext.BeanContextChild.removeVetoableChangeListener(java.lang.String, java.beans.VetoableChangeListener) in interface BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild
Parameters:
name - The name of the property that was listened on
vcl - The VetoableChangeListener to be removed

serviceRevoked sample code for java.beans.beancontext.BeanContextChildSupport.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent) definition code for java.beans.beancontext.BeanContextChildSupport.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent)

public void serviceRevoked(BeanContextServiceRevokedEvent sample code for java.beans.beancontext.BeanContextServiceRevokedEvent definition code for java.beans.beancontext.BeanContextServiceRevokedEvent  bcsre)
A service provided by the nesting BeanContext has been revoked. Subclasses may override this method in order to implement their own behaviors.

Specified by:
serviceRevoked sample code for java.beans.beancontext.BeanContextServiceRevokedListener.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent) definition code for java.beans.beancontext.BeanContextServiceRevokedListener.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent) in interface BeanContextServiceRevokedListener sample code for java.beans.beancontext.BeanContextServiceRevokedListener definition code for java.beans.beancontext.BeanContextServiceRevokedListener
Parameters:
bcsre - The BeanContextServiceRevokedEvent fired as a result of a service being revoked

serviceAvailable sample code for java.beans.beancontext.BeanContextChildSupport.serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent) definition code for java.beans.beancontext.BeanContextChildSupport.serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent)

public void serviceAvailable(BeanContextServiceAvailableEvent sample code for java.beans.beancontext.BeanContextServiceAvailableEvent definition code for java.beans.beancontext.BeanContextServiceAvailableEvent  bcsae)
A new service is available from the nesting BeanContext. Subclasses may override this method in order to implement their own behaviors

Specified by:
serviceAvailable sample code for java.beans.beancontext.BeanContextServicesListener.serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent) definition code for java.beans.beancontext.BeanContextServicesListener.serviceAvailable(java.beans.beancontext.BeanContextServiceAvailableEvent) in interface BeanContextServicesListener sample code for java.beans.beancontext.BeanContextServicesListener definition code for java.beans.beancontext.BeanContextServicesListener
Parameters:
bcsae - The BeanContextServiceAvailableEvent fired as a result of a service becoming available

getBeanContextChildPeer sample code for java.beans.beancontext.BeanContextChildSupport.getBeanContextChildPeer() definition code for java.beans.beancontext.BeanContextChildSupport.getBeanContextChildPeer()

public BeanContextChild sample code for java.beans.beancontext.BeanContextChild definition code for java.beans.beancontext.BeanContextChild  getBeanContextChildPeer()
Gets the BeanContextChild associated with this BeanContextChildSupport.

Returns:
the BeanContextChild peer of this class

isDelegated sample code for java.beans.beancontext.BeanContextChildSupport.isDelegated() definition code for java.beans.beancontext.BeanContextChildSupport.isDelegated()

public boolean isDelegated()
Reports whether or not this class is a delegate of another.

Returns:
true if this class is a delegate of another

firePropertyChange sample code for java.beans.beancontext.BeanContextChildSupport.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.beans.beancontext.BeanContextChildSupport.firePropertyChange(java.lang.String, java.lang.Object, java.lang.Object)

public void firePropertyChange(String sample code for java.lang.String definition code for java.lang.String  name,
                               Object sample code for java.lang.Object definition code for java.lang.Object  oldValue,
                               Object sample code for java.lang.Object definition code for java.lang.Object  newValue)
Report a bound property update to any registered listeners. No event is fired if old and new are equal and non-null.

Parameters:
name - The programmatic name of the property that was changed
oldValue - The old value of the property
newValue - The new value of the property

fireVetoableChange sample code for java.beans.beancontext.BeanContextChildSupport.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object) definition code for java.beans.beancontext.BeanContextChildSupport.fireVetoableChange(java.lang.String, java.lang.Object, java.lang.Object)

public void fireVetoableChange(String sample code for java.lang.String definition code for java.lang.String  name,
                               Object sample code for java.lang.Object definition code for java.lang.Object  oldValue,
                               Object sample code for java.lang.Object definition code for java.lang.Object  newValue)
                        throws PropertyVetoException sample code for java.beans.PropertyVetoException definition code for java.beans.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.

Parameters:
name - The programmatic name of the property that is about to change
oldValue - The old value of the property
newValue - - The new value of the property
Throws:
PropertyVetoException sample code for java.beans.PropertyVetoException definition code for java.beans.PropertyVetoException - if the recipient wishes the property change to be rolled back.

validatePendingSetBeanContext sample code for java.beans.beancontext.BeanContextChildSupport.validatePendingSetBeanContext(java.beans.beancontext.BeanContext) definition code for java.beans.beancontext.BeanContextChildSupport.validatePendingSetBeanContext(java.beans.beancontext.BeanContext)

public boolean validatePendingSetBeanContext(BeanContext sample code for java.beans.beancontext.BeanContext definition code for java.beans.beancontext.BeanContext  newValue)
Called from setBeanContext to validate (or otherwise) the pending change in the nesting BeanContext property value. Returning false will cause setBeanContext to throw PropertyVetoException.

Parameters:
newValue - the new value that has been requested for the BeanContext property
Returns:
true if the change operation is to be vetoed

releaseBeanContextResources sample code for java.beans.beancontext.BeanContextChildSupport.releaseBeanContextResources() definition code for java.beans.beancontext.BeanContextChildSupport.releaseBeanContextResources()

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.


initializeBeanContextResources sample code for java.beans.beancontext.BeanContextChildSupport.initializeBeanContextResources() definition code for java.beans.beancontext.BeanContextChildSupport.initializeBeanContextResources()

protected void initializeBeanContextResources()
This method may be overridden by subclasses to provide their own initialization behaviors. When invoked any resources requried by the BeanContextChild should be obtained from the current BeanContext.