| java.lang.Object org.apache.beehive.controls.runtime.bean.ControlBeanContext org.apache.beehive.controls.runtime.bean.ControlContainerContext
All known Subclasses: org.apache.beehive.controls.test.container.ControlTestContainerContext, org.apache.beehive.controls.runtime.servlet.ServletBeanContext,
ControlContainerContext | public class ControlContainerContext extends ControlBeanContext implements EventDispatcher,org.apache.beehive.controls.api.context.ControlContainerContext(Code) | | 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)
|
_releasingAll | boolean _releasingAll(Code) | | |
ControlContainerContext | public ControlContainerContext()(Code) | | |
ControlContainerContext | protected ControlContainerContext(BeanContextServicesFactory beanContextServicesFactory)(Code) | | |
addResourceContext | protected synchronized void addResourceContext(ResourceContext resourceContext, ControlBean bean)(Code) | | Adds a new managed ResourceContext to the ControlContainerContext. This method
is used to register a resource context that has just acquired resources
Parameters: resourceContext - the ResourceContext service that has acquired resources Parameters: bean - the acquiring ControlBean. Unused by the base implementation, butavailable so subclassed containers can have access to the bean. |
beginContext | public void beginContext()(Code) | | Defines the beginning of a new control container execution context.
|
endContext | public void endContext()(Code) | | Ends the current control container execution context
|
getControlHandle | public ControlHandle getControlHandle(org.apache.beehive.controls.api.bean.ControlBean bean)(Code) | | Returns a ControlHandle to the component containing the control. This handle can be
used to dispatch events and operations to a control instance. This method will return
null if the containing component does not support direct dispatch.
Parameters: bean - the target control bean |
initialize | public void initialize()(Code) | | Called by BeanContextSupport superclass during construction and deserialization to
initialize subclass transient state
|
isSingleThreadedContainer | public boolean isSingleThreadedContainer()(Code) | | Returns true if this container guarantees single-threaded behaviour. By default, top-level
containers are assumed to NOT guarantee this; specific container implementations (for example,
for EJB containers) should override this appropriately.
|
releaseResources | protected synchronized void releaseResources()(Code) | | Releases all ResourceContexts associated with the current ControlContainerContext.
This method is called by the associated container whenever all managed ResourceContexts
that have acquired resources should release them.
|
removeResourceContext | protected synchronized void removeResourceContext(ResourceContext resourceContext, ControlBean bean)(Code) | | Removes a managed ResourceContext from the ControlContainerContext. This method
is used to unregister a resource context that has already acquired resources
Parameters: resourceContext - the ResourceContext service to be removed Parameters: bean - the acquiring ControlBean. Unused by the base implementation, butavailable so subclassed containers can have access to the bean. |
Methods inherited from org.apache.beehive.controls.runtime.bean.ControlBeanContext | public boolean add(Object targetChild)(Code)(Java Doc) public boolean addAll(Collection c)(Code)(Java Doc) public void addBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code)(Java Doc) public void addBeanContextServicesListener(BeanContextServicesListener bcsl)(Code)(Java Doc) public synchronized void addLifeCycleListener(LifeCycle listener)(Code)(Java Doc) public void addPropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc) public boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider)(Code)(Java Doc) public void addVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)(Java Doc) public boolean avoidingGui()(Code)(Java Doc) public void clear()(Code)(Java Doc) public boolean contains(Object o)(Code)(Java Doc) public boolean containsAll(Collection c)(Code)(Java Doc) public void dontUseGui()(Code)(Java Doc) public boolean equals(Object o)(Code)(Java Doc) public String generateUniqueID(Class clazz)(Code)(Java Doc) public PropertyMap getAnnotationMap(AnnotatedElement annotElem)(Code)(Java Doc) public ControlBean getBean(String id)(Code)(Java Doc) protected PropertyMap getBeanAnnotationMap(ControlBean bean, AnnotatedElement annotElem)(Code)(Java Doc) public BeanContext getBeanContext()(Code)(Java Doc) protected BeanContextServicesFactory getBeanContextServicesFactory()(Code)(Java Doc) public java.lang.ClassLoader getClassLoader()(Code)(Java Doc) public ControlBean getControlBean()(Code)(Java Doc) public ControlHandle getControlHandle()(Code)(Java Doc) String getControlID()(Code)(Java Doc) public Class getControlInterface()(Code)(Java Doc) public PropertyMap getControlPropertyMap()(Code)(Java Doc) public T getControlPropertySet(Class<T> propertySet)(Code)(Java Doc) public synchronized Iterator getCurrentServiceClasses()(Code)(Java Doc) public Iterator getCurrentServiceSelectors(Class serviceClass)(Code)(Java Doc) public static String getDefaultControlBinding(Class controlIntf)(Code)(Java Doc) public T getMethodPropertySet(Method m, Class<T> propertySet)(Code)(Java Doc) public String[] getParameterNames(Method m) throws IllegalArgumentException(Code)(Java Doc) public T getParameterPropertySet(Method m, int i, Class<T> propertySet) throws IllegalArgumentException, IndexOutOfBoundsException(Code)(Java Doc) public Object getParameterValue(Method m, String parameterName, Object[] parameters) throws IllegalArgumentException(Code)(Java Doc) public URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException(Code)(Java Doc) public InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException(Code)(Java Doc) public T getService(Class<T> serviceClass, Object selector)(Code)(Java Doc) public Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException(Code)(Java Doc) public boolean hasService(Class serviceClass)(Code)(Java Doc) public synchronized boolean hasSingleThreadedParent()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public void initialize()(Code)(Java Doc) public void initializeControl()(Code)(Java Doc) public Object instantiateChild(String beanName) throws IOException, ClassNotFoundException(Code)(Java Doc) public boolean isDesignTime()(Code)(Java Doc) public boolean isEmpty()(Code)(Java Doc) public synchronized boolean isSingleThreadedContainer()(Code)(Java Doc) public Iterator iterator()(Code)(Java Doc) public boolean needsGui()(Code)(Java Doc) public void okToUseGui()(Code)(Java Doc) public static String[] prioritizeInterceptors(String[] interceptors)(Code)(Java Doc) public void propertyChange(PropertyChangeEvent pce)(Code)(Java Doc) public void releaseService(BeanContextChild child, Object requestor, Object service)(Code)(Java Doc) public boolean remove(Object targetChild)(Code)(Java Doc) public boolean removeAll(Collection c)(Code)(Java Doc) public void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code)(Java Doc) public void removeBeanContextServicesListener(BeanContextServicesListener bcsl)(Code)(Java Doc) public synchronized void removeLifeCycleListener(LifeCycle listener)(Code)(Java Doc) public void removePropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc) public void removeVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)(Java Doc) public static String resolveDefaultBinding(String implBinding, String controlClass)(Code)(Java Doc) public boolean retainAll(Collection c)(Code)(Java Doc) public void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)(Code)(Java Doc) public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)(Code)(Java Doc) public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)(Code)(Java Doc) public synchronized void setBeanContext(BeanContext beanContext) throws PropertyVetoException(Code)(Java Doc) protected static void setDelegateMap(PropertyMap map, ControlBean bean, AnnotatedElement annotElem)(Code)(Java Doc) public void setDesignTime(boolean designTime)(Code)(Java Doc) public int size()(Code)(Java Doc) public Object[] toArray()(Code)(Java Doc) public Object[] toArray(Object[] a)(Code)(Java Doc) public void vetoableChange(PropertyChangeEvent pce) throws PropertyVetoException(Code)(Java Doc)
|
|
|