Java Doc for ControlBeanContext.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » controls » runtime » bean » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Library » Apache beehive 1.0.2 src » org.apache.beehive.controls.runtime.bean 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.beehive.controls.runtime.bean.ControlBeanContext

All known Subclasses:   org.apache.beehive.controls.runtime.bean.ControlContainerContext,
ControlBeanContext
public class ControlBeanContext implements org.apache.beehive.controls.api.context.ControlBeanContext,java.beans.PropertyChangeListener,java.beans.VetoableChangeListener,java.io.Serializable(Code)
The ControlBeanContext implements the basic BeanContextServices implementation for ControlBeans. It provides several basic functions: - it defines the generic services that are available for all control containers - it acts as the base class for other container service implementations - it acts as the BeanContextServicesRevokedListener when an associated control bean has lost access to services.

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  booleanadd(Object targetChild)
     Overrides the BeanContextSupport.add() method to perform additional validation that is unique for ControlBeans containers.
public  booleanaddAll(Collection c)
    
public  voidaddBeanContextMembershipListener(BeanContextMembershipListener bcml)
    
public  voidaddBeanContextServicesListener(BeanContextServicesListener bcsl)
    
public synchronized  voidaddLifeCycleListener(LifeCycle listener)
    
public  voidaddPropertyChangeListener(String name, PropertyChangeListener pcl)
    
public  booleanaddService(Class serviceClass, BeanContextServiceProvider serviceProvider)
    
public  voidaddVetoableChangeListener(String name, VetoableChangeListener vcl)
    
public  booleanavoidingGui()
    
public  voidclear()
    
public  booleancontains(Object o)
    
public  booleancontainsAll(Collection c)
    
public  voiddontUseGui()
    
public  booleanequals(Object o)
    
public  StringgenerateUniqueID(Class clazz)
    
public  PropertyMapgetAnnotationMap(AnnotatedElement annotElem)
     Returns the PropertyMap containing default properties for an AnnotatedElement in the current context.
public  ControlBeangetBean(String id)
     Returns a ControlBean instance nested the current BeanContext.
protected  PropertyMapgetBeanAnnotationMap(ControlBean bean, AnnotatedElement annotElem)
     The default implementation of getBeanAnnotationMap.
public  BeanContextgetBeanContext()
    
protected  BeanContextServicesFactorygetBeanContextServicesFactory()
    
public  java.lang.ClassLoadergetClassLoader()
    
public  ControlBeangetControlBean()
     Returns the ControlBean associated directly with the ControlBeanContext.
public  ControlHandlegetControlHandle()
    
 StringgetControlID()
    
public  ClassgetControlInterface()
    
public  PropertyMapgetControlPropertyMap()
    
public  TgetControlPropertySet(Class<T> propertySet)
    
public synchronized  IteratorgetCurrentServiceClasses()
    
public  IteratorgetCurrentServiceSelectors(Class serviceClass)
    
public static  StringgetDefaultControlBinding(Class controlIntf)
     Returns the default binding based entirely upon annotations or naming conventions.
public  TgetMethodPropertySet(Method m, Class<T> propertySet)
    
public  String[]getParameterNames(Method m)
    
public  TgetParameterPropertySet(Method m, int i, Class<T> propertySet)
    
public  ObjectgetParameterValue(Method m, String parameterName, Object[] parameters)
    
public  URLgetResource(String name, BeanContextChild bcc)
    
public  InputStreamgetResourceAsStream(String name, BeanContextChild bcc)
    
public  TgetService(Class<T> serviceClass, Object selector)
    
public  ObjectgetService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl)
    
public  booleanhasService(Class serviceClass)
    
public synchronized  booleanhasSingleThreadedParent()
    
public  inthashCode()
    
public  voidinitialize()
    
public  voidinitializeControl()
     The initializeControl method is invoked when the implementation instance associated with the context has been instantiated and initialized.
public  ObjectinstantiateChild(String beanName)
    
public  booleanisDesignTime()
    
public  booleanisEmpty()
    
public synchronized  booleanisSingleThreadedContainer()
     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  Iteratoriterator()
    
public  booleanneedsGui()
    
public  voidokToUseGui()
    
public static  String[]prioritizeInterceptors(String[] interceptors)
     Applies externally defined (via INTERCEPTOR_CONFIG_FILE) ordering priority for controls interceptor services.
public  voidpropertyChange(PropertyChangeEvent pce)
    
public  voidreleaseService(BeanContextChild child, Object requestor, Object service)
    
public  booleanremove(Object targetChild)
     Overrides the BeanContextSupport.remove() method to perform additional post-processing on child removal.
public  booleanremoveAll(Collection c)
    
public  voidremoveBeanContextMembershipListener(BeanContextMembershipListener bcml)
    
public  voidremoveBeanContextServicesListener(BeanContextServicesListener bcsl)
    
public synchronized  voidremoveLifeCycleListener(LifeCycle listener)
    
public  voidremovePropertyChangeListener(String name, PropertyChangeListener pcl)
    
public  voidremoveVetoableChangeListener(String name, VetoableChangeListener vcl)
    
public static  StringresolveDefaultBinding(String implBinding, String controlClass)
     Implements the default control implementation binding algorithm ( + "Impl" ).
public  booleanretainAll(Collection c)
    
public  voidrevokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)
    
public  voidserviceAvailable(BeanContextServiceAvailableEvent bcsae)
    
public  voidserviceRevoked(BeanContextServiceRevokedEvent bcsre)
     Implements the java.beans.beancontext.BeanContextServiceRevokedListener.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent) method.
public synchronized  voidsetBeanContext(BeanContext beanContext)
     Overrides the java.beans.beancontext.BeanContextChild.setBeanContext(java.beans.beancontext.BeanContext) method.
protected static  voidsetDelegateMap(PropertyMap map, ControlBean bean, AnnotatedElement annotElem)
    
public  voidsetDesignTime(boolean designTime)
    
public  intsize()
    
public  Object[]toArray()
    
public  Object[]toArray(Object[] a)
    
public  voidvetoableChange(PropertyChangeEvent pce)
    


Constructor Detail
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.




Method Detail
add
public boolean add(Object targetChild)(Code)
Overrides the BeanContextSupport.add() method to perform additional validation that is unique for ControlBeans containers.



addAll
public boolean addAll(Collection c)(Code)



addBeanContextMembershipListener
public void addBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code)



addBeanContextServicesListener
public void addBeanContextServicesListener(BeanContextServicesListener bcsl)(Code)



addLifeCycleListener
public synchronized void addLifeCycleListener(LifeCycle listener)(Code)



addPropertyChangeListener
public void addPropertyChangeListener(String name, PropertyChangeListener pcl)(Code)



addService
public boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider)(Code)



addVetoableChangeListener
public void addVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)



avoidingGui
public boolean avoidingGui()(Code)



clear
public void clear()(Code)



contains
public boolean contains(Object o)(Code)



containsAll
public boolean containsAll(Collection c)(Code)



dontUseGui
public void dontUseGui()(Code)



equals
public boolean equals(Object o)(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



getBeanContext
public BeanContext getBeanContext()(Code)



getBeanContextServicesFactory
protected BeanContextServicesFactory getBeanContextServicesFactory()(Code)



getClassLoader
public java.lang.ClassLoader getClassLoader()(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.



getControlHandle
public ControlHandle getControlHandle()(Code)



getControlID
String getControlID()(Code)



getControlInterface
public Class getControlInterface()(Code)



getControlPropertyMap
public PropertyMap getControlPropertyMap()(Code)



getControlPropertySet
public T getControlPropertySet(Class<T> propertySet)(Code)



getCurrentServiceClasses
public synchronized Iterator getCurrentServiceClasses()(Code)



getCurrentServiceSelectors
public Iterator getCurrentServiceSelectors(Class serviceClass)(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)



getParameterNames
public String[] getParameterNames(Method m) throws IllegalArgumentException(Code)



getParameterPropertySet
public T getParameterPropertySet(Method m, int i, Class<T> propertySet) throws IllegalArgumentException, IndexOutOfBoundsException(Code)



getParameterValue
public Object getParameterValue(Method m, String parameterName, Object[] parameters) throws IllegalArgumentException(Code)



getResource
public URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException(Code)



getResourceAsStream
public InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException(Code)



getService
public T getService(Class<T> serviceClass, Object selector)(Code)



getService
public Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException(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.



instantiateChild
public Object instantiateChild(String beanName) throws IOException, ClassNotFoundException(Code)



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.



iterator
public Iterator iterator()(Code)



needsGui
public boolean needsGui()(Code)



okToUseGui
public void okToUseGui()(Code)



prioritizeInterceptors
public static String[] prioritizeInterceptors(String[] interceptors)(Code)
Applies externally defined (via INTERCEPTOR_CONFIG_FILE) ordering priority for controls interceptor services.
Parameters:
  interceptors - String[]InterceptorUtils.prioritizeInterceptors(String[])



propertyChange
public void propertyChange(PropertyChangeEvent pce)(Code)



releaseService
public void releaseService(BeanContextChild child, Object requestor, Object service)(Code)



remove
public boolean remove(Object targetChild)(Code)
Overrides the BeanContextSupport.remove() method to perform additional post-processing on child removal.



removeAll
public boolean removeAll(Collection c)(Code)



removeBeanContextMembershipListener
public void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code)



removeBeanContextServicesListener
public void removeBeanContextServicesListener(BeanContextServicesListener bcsl)(Code)



removeLifeCycleListener
public synchronized void removeLifeCycleListener(LifeCycle listener)(Code)



removePropertyChangeListener
public void removePropertyChangeListener(String name, PropertyChangeListener pcl)(Code)



removeVetoableChangeListener
public void removeVetoableChangeListener(String name, VetoableChangeListener vcl)(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)



retainAll
public boolean retainAll(Collection c)(Code)



revokeService
public void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)(Code)



serviceAvailable
public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)(Code)



serviceRevoked
public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)(Code)
Implements the java.beans.beancontext.BeanContextServiceRevokedListener.serviceRevoked(java.beans.beancontext.BeanContextServiceRevokedEvent) method. This is called if the associated ControlBean has requested a service that is being subsequently revoked.



setBeanContext
public synchronized void setBeanContext(BeanContext beanContext) throws PropertyVetoException(Code)
Overrides the java.beans.beancontext.BeanContextChild.setBeanContext(java.beans.beancontext.BeanContext) method. This hook is used to perform additional processing that needs to occur when the control is associated with a new nesting context.



setDelegateMap
protected static void setDelegateMap(PropertyMap map, ControlBean bean, AnnotatedElement annotElem)(Code)



setDesignTime
public void setDesignTime(boolean designTime)(Code)



size
public int size()(Code)



toArray
public Object[] toArray()(Code)



toArray
public Object[] toArray(Object[] a)(Code)



vetoableChange
public void vetoableChange(PropertyChangeEvent pce) throws PropertyVetoException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.