|
||||||||||
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 ControlBeanContext |
---|
INTERCEPTOR_CONFIG_FILE |
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,
ControlBean bean)
Adds a new managed ResourceContext to the ControlContainerContext. |
void |
beginContext()
Defines the beginning of a new control container execution context. |
Object |
dispatchEvent(ControlHandle handle,
EventRef event,
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 |
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 |
boolean |
isSingleThreadedContainer()
Returns true if this container guarantees single-threaded behaviour. |
protected void |
releaseResources()
Releases all ResourceContexts associated with the current ControlContainerContext. |
protected void |
removeResourceContext(ResourceContext resourceContext,
ControlBean bean)
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, readChildren, remove, removeAll, removeBeanContextMembershipListener, retainAll, serialize, setDesignTime, setLocale, size, toArray, toArray, validatePendingAdd, validatePendingRemove, 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, setBeanContext |
Methods inherited from interface Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, 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 |
Methods inherited from interface BeanContextServiceRevokedListener |
---|
serviceRevoked |
Constructor Detail |
---|
public ControlContainerContext()
Method Detail |
---|
public void beginContext()
beginContext
in interface ControlContainerContext
public void endContext()
endContext
in interface ControlContainerContext
public void initialize()
initialize
in class ControlBeanContext
protected void addResourceContext(ResourceContext resourceContext, ControlBean bean)
resourceContext
- the ResourceContext service that has acquired resourcesbean
- the acquiring ControlBean. Unused by the base implementation, but
available so subclassed containers can have access to the bean.protected void removeResourceContext(ResourceContext resourceContext, ControlBean bean)
resourceContext
- the ResourceContext service to be removedbean
- the acquiring ControlBean. Unused by the base implementation, but
available so subclassed containers can have access to the bean.protected void releaseResources()
public Object dispatchEvent(ControlHandle handle, EventRef event, Object[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
dispatchEvent
in interface EventDispatcher
handle
- the control handle identifying the target beanevent
- the event to be invoked on the target beanargs
- the arguments to be passed to the target method invocation
IllegalArgumentException
- the target is not valid, the event is not a valid event
type for the requested target, or the argument types do not match the event
signature.
IllegalAccessException
- the underlying event method is not accessible due to
access control.
InvocationTargetException
- wraps any exception thrown by the underlying event
handler.public ControlHandle getControlHandle(ControlBean bean)
getControlHandle
in interface ControlContainerContext
bean
- the target control beanpublic boolean isSingleThreadedContainer()
isSingleThreadedContainer
in interface ControlBeanContext
isSingleThreadedContainer
in class ControlBeanContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |