java.beans.beancontext |
Provides classes and interfaces relating to bean context.
A bean context is a container for beans and defines the execution
environment for the beans it contains. There can be several beans in
a single bean context, and a bean context can be nested within another
bean context. This package also contains events and listener
interface for beans being added and removed from a bean context.
@since 1.2
|
Java Source File Name | Type | Comment |
BeanContext.java | Interface |
The BeanContext acts a logical hierarchical container for JavaBeans.
author: Laurence P. |
BeanContextChild.java | Interface |
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.
author: Laurence P. |
BeanContextChildComponentProxy.java | Interface |
This interface is implemented by
BeanContextChildren that have an AWT Component
associated with them.
author: Laurence P. |
BeanContextChildSupport.java | Class |
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.
author: Laurence P. |
BeanContextContainerProxy.java | Interface |
This interface is implemented by BeanContexts' that have an AWT Container
associated with them.
author: Laurence P. |
BeanContextEvent.java | Class |
BeanContextEvent is the abstract root event class
for all events emitted
from, and pertaining to the semantics of, a BeanContext .
This class introduces a mechanism to allow the propagation of
BeanContextEvent subclasses through a hierarchy of
BeanContext s. |
BeanContextMembershipEvent.java | Class | A BeanContextMembershipEvent encapsulates
the list of children added to, or removed from,
the membership of a particular BeanContext . |
BeanContextMembershipListener.java | Interface |
Compliant BeanContexts fire events on this interface when the state of
the membership of the BeanContext changes.
author: Laurence P. |
BeanContextProxy.java | Interface |
This interface is implemented by a JavaBean that does
not directly have a BeanContext(Child) associated with
it (via implementing that interface or a subinterface thereof),
but has a public BeanContext(Child) delegated from it.
For example, a subclass of java.awt.Container may have a BeanContext
associated with it that all Component children of that Container shall
be contained within.
An Object may not implement this interface and the
BeanContextChild interface
(or any subinterfaces thereof) they are mutually exclusive.
Callers of this interface shall examine the return type in order to
obtain a particular subinterface of BeanContextChild as follows:
BeanContextChild bcc = o.getBeanContextProxy();
if (bcc instanceof BeanContext) {
// ...
}
or
BeanContextChild bcc = o.getBeanContextProxy();
BeanContext bc = null;
try {
bc = (BeanContext)bcc;
} catch (ClassCastException cce) {
// cast failed, bcc is not an instanceof BeanContext
}
The return value is a constant for the lifetime of the implementing
instance
author: Laurence P. |
BeanContextServiceAvailableEvent.java | Class |
This event type is used by the BeanContextServicesListener in order to
identify the service being registered. |
BeanContextServiceProvider.java | Interface |
One of the primary functions of a BeanContext is to act a as rendezvous
between JavaBeans, and BeanContextServiceProviders. |
BeanContextServiceProviderBeanInfo.java | Interface | A BeanContextServiceProvider implementor who wishes to provide explicit
information about the services their bean may provide shall implement a
BeanInfo class that implements this BeanInfo subinterface and provides
explicit information about the methods, properties, events, etc, of their
services. |
BeanContextServiceRevokedEvent.java | Class |
This event type is used by the
BeanContextServiceRevokedListener in order to
identify the service being revoked. |
BeanContextServiceRevokedListener.java | Interface | The listener interface for receiving
BeanContextServiceRevokedEvent objects. |
BeanContextServices.java | Interface |
The BeanContextServices interface provides a mechanism for a BeanContext
to expose generic "services" to the BeanContextChild objects within. |
BeanContextServicesListener.java | Interface | The listener interface for receiving
BeanContextServiceAvailableEvent objects. |
BeanContextServicesSupport.java | Class |
This helper class provides a utility implementation of the
java.beans.beancontext.BeanContextServices interface.
Since this class directly implements the BeanContextServices interface,
the class can, and is intended to be used either by subclassing this
implementation, or via delegation of an instance of this class
from another through the BeanContextProxy interface.
author: Laurence P. |
BeanContextSupport.java | Class | This helper class provides a utility implementation of the
java.beans.beancontext.BeanContext interface.
Since this class directly implements the BeanContext interface, the class
can, and is intended to be used either by subclassing this implementation,
or via ad-hoc delegation of an instance of this class from another.
author: Laurence P. |