Deprecated
for removal since 23.
JavaBeans wishing to be nested within, and obtain a reference to their execution environment, or context, as defined by the BeanContext sub-interface shall implement this interface.
Conformant BeanContexts shall as a side effect of adding a BeanContextChild object shall pass a reference to itself via the setBeanContext() method of this interface.
Note that a BeanContextChild may refuse a change in state by throwing PropertyVetoedException in response.
In order for persistence mechanisms to function properly on BeanContextChild instances across a broad variety of scenarios, implementing classes of this interface are required to define as transient, any or all fields, or instance variables, that may contain, or represent, references to the nesting BeanContext instance or other resources obtained from the BeanContext via any unspecified mechanisms.
java.beans.beancontext.BeanContext , java.beans.PropertyChangeEvent , java.beans.PropertyChangeListener , java.beans.PropertyVetoException , java.beans.VetoableChangeListener
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(String
the name of the property to listen on name, PropertyChangeListener the pcl)PropertyChangeListener to addAdds a |
| public void | addVetoableChangeListener(String
the name of the property to listen on name, VetoableChangeListener the vcl)VetoableChangeListener to addAdds a |
| public BeanContext | Returns: theBeanContext associated
with this BeanContextChild.
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Gets the |
| public void | removePropertyChangeListener(String
the name of the property that was listened on name, PropertyChangeListener the pcl)PropertyChangeListener to removeRemoves a |
| public void | removeVetoableChangeListener(String
the name of the property that was listened on. name, VetoableChangeListener the vcl)VetoableChangeListener to remove.Removes a |
| public void | setBeanContext(BeanContext
The bc)BeanContext with which
to associate this BeanContextChild.
References Deprecated
BeanContext is deprecated or references (maybe indirectly) at least one deprecated element.
Objects that implement this interface,
shall fire a java.beans.PropertyChangeEvent, with parameters:
propertyName "beanContext", oldValue (the previous nesting
|
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(String name, PropertyChangeListener pcl) Adds a
| |
| addVetoableChangeListener | back to summary |
|---|---|
| public void addVetoableChangeListener(String name, VetoableChangeListener vcl) Adds a
| |
| getBeanContext | back to summary |
|---|---|
| public BeanContext getBeanContext()
References Deprecated
See corresponding docs for further information. Gets the
| |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(String name, PropertyChangeListener pcl) Removes a
| |
| removeVetoableChangeListener | back to summary |
|---|---|
| public void removeVetoableChangeListener(String name, VetoableChangeListener vcl) Removes a
| |
| setBeanContext | back to summary |
|---|---|
| public void setBeanContext(BeanContext bc) throws PropertyVetoException
References Deprecated
See corresponding docs for further information.
Objects that implement this interface,
shall fire a java.beans.PropertyChangeEvent, with parameters:
propertyName "beanContext", oldValue (the previous nesting
A change in the value of the nesting BeanContext property of this BeanContextChild may be vetoed by throwing the appropriate exception.
| |