|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectBeanContextChildSupport
BeanContextSupport
BeanContextServicesSupport
ControlBeanContext
ControlContainerContext
public class ControlContainerContext
The ControlContainerContext class provides a base class implementation for external containers of ControlBeans. It provides additional services, such as: - defines a contextual service provider for the ResourceManager interface - defines a simplified contract for the external container to interact with resource management (beginContext/endContext)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class BeanContextServicesSupport |
---|
BeanContextServicesSupport.BCSSChild, BeanContextServicesSupport.BCSSProxyServiceProvider, BeanContextServicesSupport.BCSSServiceProvider |
Nested classes/interfaces inherited from class BeanContextSupport |
---|
BeanContextSupport.BCSChild, BeanContextSupport.BCSIterator |
Nested classes/interfaces inherited from interface ControlBeanContext |
---|
ControlBeanContext.LifeCycle |
Field Summary |
---|
Fields inherited from class BeanContextServicesSupport |
---|
bcsListeners, proxy, serializable, services |
Fields inherited from class BeanContextSupport |
---|
bcmListeners, children, designTime, locale, okToUseGui |
Fields inherited from class BeanContextChildSupport |
---|
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
Fields inherited from interface BeanContext |
---|
globalHierarchyLock |
Fields inherited from interface DesignMode |
---|
PROPERTYNAME |
Constructor Summary | |
---|---|
ControlContainerContext()
|
Method Summary | |
---|---|
protected void |
addResourceContext(ResourceContext resourceContext)
Adds a new managed ResourceContext to the ControlContainerContext. |
void |
beginContext()
Defines the beginning of a new control container execution context. |
Object |
dispatch(String targetID,
Method method,
Object[] args)
Dispatch an operation or an event to a bean within this container bean context. |
void |
endContext()
Ends the current control container execution context |
static ControlContainerContext |
getContext()
Returns the active ControlContainerContext for the current thread, or null if no context is currently active. |
protected Class |
getControlBinding(Class controlClass)
Returns the binding from a control interface to a control implementation for the current container context. |
protected ControlHandle |
getControlHandle(ControlBean bean)
Returns a ControlHandle to the component containing the control. |
void |
initialize()
Called by BeanContextSupport superclass during construction and deserialization to initialize subclass transient state |
protected void |
releaseResources()
Releases all ResourceContexts associated with the current ControlContainerContext. |
protected void |
removeResourceContext(ResourceContext resourceContext)
Removes a managed ResourceContext from the ControlContainerContext. |
Methods inherited from class BeanContextServicesSupport |
---|
addBeanContextServicesListener, addService, addService, bcsPreDeserializationHook, bcsPreSerializationHook, childJustRemovedHook, createBCSChild, createBCSSServiceProvider, fireServiceAdded, fireServiceAdded, fireServiceRevoked, fireServiceRevoked, getBeanContextServicesPeer, getChildBeanContextServicesListener, getCurrentServiceClasses, getCurrentServiceSelectors, getService, hasService, initializeBeanContextResources, releaseBeanContextResources, releaseService, removeBeanContextServicesListener, revokeService, serviceAvailable |
Methods inherited from class BeanContextSupport |
---|
addAll, addBeanContextMembershipListener, avoidingGui, bcsChildren, childDeserializedHook, childJustAddedHook, classEquals, clear, contains, containsAll, containsKey, copyChildren, deserialize, dontUseGui, fireChildrenAdded, fireChildrenRemoved, getBeanContextPeer, getChildBeanContextChild, getChildBeanContextMembershipListener, getChildPropertyChangeListener, getChildSerializable, getChildVetoableChangeListener, getChildVisibility, getLocale, getResource, getResourceAsStream, instantiateChild, isDesignTime, isEmpty, isSerializing, iterator, needsGui, okToUseGui, propertyChange, readChildren, remove, removeAll, removeBeanContextMembershipListener, retainAll, serialize, setDesignTime, setLocale, size, toArray, toArray, validatePendingAdd, validatePendingRemove, vetoableChange, writeChildren |
Methods inherited from class BeanContextChildSupport |
---|
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, isDelegated, removePropertyChangeListener, removeVetoableChangeListener, validatePendingSetBeanContext |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface BeanContextServices |
---|
addBeanContextServicesListener, addService, getCurrentServiceClasses, getCurrentServiceSelectors, getService, hasService, releaseService, removeBeanContextServicesListener, revokeService |
Methods inherited from interface BeanContext |
---|
addBeanContextMembershipListener, getResource, getResourceAsStream, instantiateChild, removeBeanContextMembershipListener |
Methods inherited from interface BeanContextChild |
---|
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener |
Methods inherited from interface Collection |
---|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface DesignMode |
---|
isDesignTime, setDesignTime |
Methods inherited from interface Visibility |
---|
avoidingGui, dontUseGui, needsGui, okToUseGui |
Methods inherited from interface BeanContextServicesListener |
---|
serviceAvailable |
Constructor Detail |
---|
public ControlContainerContext()
Method Detail |
---|
public static ControlContainerContext getContext()
public void beginContext()
public void endContext()
public void initialize()
initialize
in class ControlBeanContext
protected void addResourceContext(ResourceContext resourceContext)
resourceContext
- the ResourceContext service that has acquired resourcesprotected void removeResourceContext(ResourceContext resourceContext)
resourceContext
- the ResourceContext service to be removedprotected void releaseResources()
public Object dispatch(String targetID, Method method, Object[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
targetID
- the composite ID of the target control beanmethod
- the method to be invoked on the target beanargs
- the arguments to be passed to the target method invocation
IllegalArgumentException
IllegalAccessException
InvocationTargetException
protected ControlHandle getControlHandle(ControlBean bean)
targetID
- the composite ID of the target control beanprotected Class getControlBinding(Class controlClass)
getControlBinding
in class ControlBeanContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |