Java Doc for ControlContainerContext.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
      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)


Field Summary
 boolean_releasingAll
    
 Stack<ResourceContext>_resourceContexts
    

Constructor Summary
public  ControlContainerContext()
    
protected  ControlContainerContext(BeanContextServicesFactory beanContextServicesFactory)
    

Method Summary
protected synchronized  voidaddResourceContext(ResourceContext resourceContext, ControlBean bean)
     Adds a new managed ResourceContext to the ControlContainerContext.
public  voidbeginContext()
     Defines the beginning of a new control container execution context.
public  ObjectdispatchEvent(ControlHandle handle, EventRef event, Object[] args)
     Dispatch an operation or an event to a bean within this container bean context.
public  voidendContext()
    
public  ControlHandlegetControlHandle(org.apache.beehive.controls.api.bean.ControlBean bean)
     Returns a ControlHandle to the component containing the control.
public  voidinitialize()
    
public  booleanisSingleThreadedContainer()
     Returns true if this container guarantees single-threaded behaviour.
protected synchronized  voidreleaseResources()
     Releases all ResourceContexts associated with the current ControlContainerContext.
protected synchronized  voidremoveResourceContext(ResourceContext resourceContext, ControlBean bean)
     Removes a managed ResourceContext from the ControlContainerContext.

Field Detail
_releasingAll
boolean _releasingAll(Code)



_resourceContexts
Stack<ResourceContext> _resourceContexts(Code)




Constructor Detail
ControlContainerContext
public ControlContainerContext()(Code)



ControlContainerContext
protected ControlContainerContext(BeanContextServicesFactory beanContextServicesFactory)(Code)




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



dispatchEvent
public Object dispatchEvent(ControlHandle handle, EventRef event, Object[] args) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException(Code)
Dispatch an operation or an event to a bean within this container bean context.
Parameters:
  handle - the control handle identifying the target bean
Parameters:
  event - the event to be invoked on the target bean
Parameters:
  args - the arguments to be passed to the target method invocation



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)

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.