| java.lang.Object org.apache.beehive.controls.runtime.bean.ControlBeanContext
All known Subclasses: org.apache.beehive.controls.runtime.bean.ControlContainerContext,
Inner Class :abstract static class BeanContextServicesFactory | |
Constructor Summary | |
protected | ControlBeanContext(ControlBean bean) Creates a new ControlBeanContext instance associated with a specific control bean. | protected | ControlBeanContext(ControlBean bean, BeanContextServicesFactory beanContextServicesFactory) Creates a new ControlBeanContext instance associated with a specific control bean. |
Method Summary | |
public boolean | add(Object targetChild) Overrides the BeanContextSupport.add() method to perform additional validation
that is unique for ControlBeans containers. | public boolean | addAll(Collection c) | public void | addBeanContextMembershipListener(BeanContextMembershipListener bcml) | public void | addBeanContextServicesListener(BeanContextServicesListener bcsl) | public synchronized void | addLifeCycleListener(LifeCycle listener) | public void | addPropertyChangeListener(String name, PropertyChangeListener pcl) | public boolean | addService(Class serviceClass, BeanContextServiceProvider serviceProvider) | public void | addVetoableChangeListener(String name, VetoableChangeListener vcl) | public boolean | avoidingGui() | public void | clear() | public boolean | contains(Object o) | public boolean | containsAll(Collection c) | public void | dontUseGui() | public boolean | equals(Object o) | public String | generateUniqueID(Class clazz) | public PropertyMap | getAnnotationMap(AnnotatedElement annotElem) Returns the PropertyMap containing default properties for an AnnotatedElement
in the current context. | public ControlBean | getBean(String id) Returns a ControlBean instance nested the current BeanContext. | protected PropertyMap | getBeanAnnotationMap(ControlBean bean, AnnotatedElement annotElem) The default implementation of getBeanAnnotationMap. | public BeanContext | getBeanContext() | protected BeanContextServicesFactory | getBeanContextServicesFactory() | public java.lang.ClassLoader | getClassLoader() | public ControlBean | getControlBean() Returns the ControlBean associated directly with the ControlBeanContext. | public ControlHandle | getControlHandle() | String | getControlID() | public Class | getControlInterface() | public PropertyMap | getControlPropertyMap() | public T | getControlPropertySet(Class<T> propertySet) | public synchronized Iterator | getCurrentServiceClasses() | public Iterator | getCurrentServiceSelectors(Class serviceClass) | public static String | getDefaultControlBinding(Class controlIntf) Returns the default binding based entirely upon annotations or naming conventions. | public T | getMethodPropertySet(Method m, Class<T> propertySet) | public String[] | getParameterNames(Method m) | public T | getParameterPropertySet(Method m, int i, Class<T> propertySet) | public Object | getParameterValue(Method m, String parameterName, Object[] parameters) | public URL | getResource(String name, BeanContextChild bcc) | public InputStream | getResourceAsStream(String name, BeanContextChild bcc) | public T | getService(Class<T> serviceClass, Object selector) | public Object | getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) | public boolean | hasService(Class serviceClass) | public synchronized boolean | hasSingleThreadedParent() | public int | hashCode() | public void | initialize() | public void | initializeControl() The initializeControl method is invoked when the implementation instance associated
with the context has been instantiated and initialized. | public Object | instantiateChild(String beanName) | public boolean | isDesignTime() | public boolean | isEmpty() | public synchronized boolean | isSingleThreadedContainer() Returns true if this container associated with this context service enforces
single-threaded invocation, false otherwise.
This MUST be overridden by container-specific subclasses in order to change
the default behavior. | public Iterator | iterator() | public boolean | needsGui() | public void | okToUseGui() | public static String[] | prioritizeInterceptors(String[] interceptors) Applies externally defined (via INTERCEPTOR_CONFIG_FILE) ordering priority for
controls interceptor services. | public void | propertyChange(PropertyChangeEvent pce) | public void | releaseService(BeanContextChild child, Object requestor, Object service) | public boolean | remove(Object targetChild) Overrides the BeanContextSupport.remove() method to perform additional post-processing
on child removal. | public boolean | removeAll(Collection c) | public void | removeBeanContextMembershipListener(BeanContextMembershipListener bcml) | public void | removeBeanContextServicesListener(BeanContextServicesListener bcsl) | public synchronized void | removeLifeCycleListener(LifeCycle listener) | public void | removePropertyChangeListener(String name, PropertyChangeListener pcl) | public void | removeVetoableChangeListener(String name, VetoableChangeListener vcl) | public static String | resolveDefaultBinding(String implBinding, String controlClass) Implements the default control implementation binding algorithm ( + "Impl" ). | public boolean | retainAll(Collection c) | public void | revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow) | public void | serviceAvailable(BeanContextServiceAvailableEvent bcsae) | public void | serviceRevoked(BeanContextServiceRevokedEvent bcsre) Implements the
java.beans.beancontext.BeanContextServiceRevokedListener.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent) method. | public synchronized void | setBeanContext(BeanContext beanContext) Overrides the
java.beans.beancontext.BeanContextChild.setBeanContext(java.beans.beancontext.BeanContext) method. | protected static void | setDelegateMap(PropertyMap map, ControlBean bean, AnnotatedElement annotElem) | public void | setDesignTime(boolean designTime) | public int | size() | public Object[] | toArray() | public Object[] | toArray(Object[] a) | public void | vetoableChange(PropertyChangeEvent pce) |
ControlBeanContext | protected ControlBeanContext(ControlBean bean)(Code) | | Creates a new ControlBeanContext instance associated with a specific control bean. If the
ControlBean is null, this ControlBeanContext object represents a top-level Control
container. This constructor uses the default implementation of the
java.beans.beancontext.BeanContextServices interface from the JDK.
Parameters: bean - The control bean that contains/scopes the ControlBeanContext. If null, it means theControlBeanContext is for a top-level container. |
ControlBeanContext | protected ControlBeanContext(ControlBean bean, BeanContextServicesFactory beanContextServicesFactory)(Code) | | Creates a new ControlBeanContext instance associated with a specific control bean. If the
ControlBean is null, this ControlBeanContext object represents a top-level Control
container. This constructor uses the beanContextServicesDelegate instance as the
implementation of the
java.beans.beancontext.BeanContextServices interface.
Parameters: bean - The control bean Parameters: beanContextServicesFactory - A factory that can be used to create the BeanContextServicesFactory objectthat implements support for the BeanContextServices interface. |
add | public boolean add(Object targetChild)(Code) | | Overrides the BeanContextSupport.add() method to perform additional validation
that is unique for ControlBeans containers.
|
addLifeCycleListener | public synchronized void addLifeCycleListener(LifeCycle listener)(Code) | | |
avoidingGui | public boolean avoidingGui()(Code) | | |
clear | public void clear()(Code) | | |
dontUseGui | public void dontUseGui()(Code) | | |
generateUniqueID | public String generateUniqueID(Class clazz)(Code) | | Generates a new unique control ID for an instance of the target class
|
getAnnotationMap | public PropertyMap getAnnotationMap(AnnotatedElement annotElem)(Code) | | Returns the PropertyMap containing default properties for an AnnotatedElement
in the current context. The initialization of PropertyMap binding is always
done by delegating to a
ControlContainerContext , enabling containers to implement
property binding mechanisms (such as external config) that may override the values
contained within the element annotations.
|
getBean | public ControlBean getBean(String id)(Code) | | Returns a ControlBean instance nested the current BeanContext.
Parameters: id - the identifier for the target control, relative to the currentcontext. |
getBeanAnnotationMap | protected PropertyMap getBeanAnnotationMap(ControlBean bean, AnnotatedElement annotElem)(Code) | | The default implementation of getBeanAnnotationMap. This returns a map based purely
upon annotation reflection
|
getBeanContextServicesFactory | protected BeanContextServicesFactory getBeanContextServicesFactory()(Code) | | |
getControlBean | public ControlBean getControlBean()(Code) | | Returns the ControlBean associated directly with the ControlBeanContext. If the
context represents a top-level container, will return null.
|
getControlInterface | public Class getControlInterface()(Code) | | |
getControlPropertySet | public T getControlPropertySet(Class<T> propertySet)(Code) | | |
getCurrentServiceClasses | public synchronized Iterator getCurrentServiceClasses()(Code) | | |
getDefaultControlBinding | public static String getDefaultControlBinding(Class controlIntf)(Code) | | Returns the default binding based entirely upon annotations or naming conventions.
Parameters: controlIntf - the control interface class the class name of the default control implementation bindingControlUtils.getDefaultControlBinding(Class) |
getMethodPropertySet | public T getMethodPropertySet(Method m, Class<T> propertySet)(Code) | | |
hasService | public boolean hasService(Class serviceClass)(Code) | | |
hasSingleThreadedParent | public synchronized boolean hasSingleThreadedParent()(Code) | | |
hashCode | public int hashCode()(Code) | | |
initialize | public void initialize()(Code) | | Called by BeanContextSupport superclass during construction and deserialization to
initialize subclass transient state
|
initializeControl | public void initializeControl()(Code) | | The initializeControl method is invoked when the implementation instance associated
with the context has been instantiated and initialized.
|
isDesignTime | public boolean isDesignTime()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
isSingleThreadedContainer | public synchronized boolean isSingleThreadedContainer()(Code) | | Returns true if this container associated with this context service enforces
single-threaded invocation, false otherwise.
This MUST be overridden by container-specific subclasses in order to change
the default behavior. If a single-threaded container intends to guarantee
single-threaded behavior (such as the EJB container), this should return true.
|
needsGui | public boolean needsGui()(Code) | | |
okToUseGui | public void okToUseGui()(Code) | | |
remove | public boolean remove(Object targetChild)(Code) | | Overrides the BeanContextSupport.remove() method to perform additional post-processing
on child removal.
|
removeLifeCycleListener | public synchronized void removeLifeCycleListener(LifeCycle listener)(Code) | | |
resolveDefaultBinding | public static String resolveDefaultBinding(String implBinding, String controlClass)(Code) | | Implements the default control implementation binding algorithm ( + "Impl" ). See
documentation for the org.apache.beehive.controls.api.bean.ControlInterface annotation.
Parameters: implBinding - the value of the defaultBinding attribute returned from a ControlInterface annotation Parameters: controlClass - the actual name of the interface decorated by the ControlInterface annotation the resolved defaultBinding valueControlUtils.resolveDefaultBinding(StringString) |
setDesignTime | public void setDesignTime(boolean designTime)(Code) | | |
|
|