Java Doc for ControlBeanContextServicesSupport.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » controls » runtime » webcontext » 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.webcontext 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.beehive.controls.runtime.webcontext.ControlBeanContextChildSupport
      org.apache.beehive.controls.runtime.webcontext.ControlBeanContextSupport
         org.apache.beehive.controls.runtime.webcontext.ControlBeanContextServicesSupport

ControlBeanContextServicesSupport
public class ControlBeanContextServicesSupport extends ControlBeanContextSupport implements BeanContextServices(Code)
Implementation of BeanContextServices for Beehive Controls. Assumes single threaded usage.



Constructor Summary
public  ControlBeanContextServicesSupport()
     Constructor.
public  ControlBeanContextServicesSupport(BeanContextServices peer)
     Constructor which allows delegate to be passed in.

Method Summary
public  voidaddBeanContextServicesListener(BeanContextServicesListener bcsl)
     Adds a BeanContextServicesListener to this BeanContext.
public  booleanaddService(Class serviceClass, BeanContextServiceProvider serviceProvider)
     Adds a service to this BeanContext.
public  IteratorgetCurrentServiceClasses()
     Gets the currently available services for this context.
public  IteratorgetCurrentServiceSelectors(Class serviceClass)
     Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.
public  ObjectgetService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl)
     A BeanContextChild, or any arbitrary object associated with a BeanContextChild, may obtain a reference to a currently registered service from its nesting BeanContextServices via invocation of this method.
public synchronized  booleanhasService(Class serviceClass)
     Reports whether or not a given service is currently available from this context.
protected  voidinitialize()
     Initialize data structures.
protected synchronized  voidreleaseBeanContextResources()
     Invoked when all resources obtained from the current nested bean context need to be released.
public  voidreleaseService(BeanContextChild child, Object requestor, Object service)
     Releases a BeanContextChild's (or any arbitrary object associated with a BeanContextChild) reference to the specified service by calling releaseService() on the underlying BeanContextServiceProvider.
public  voidremoveBeanContextServicesListener(BeanContextServicesListener bcsl)
     Removes a BeanContextServicesListener from this BeanContext.
public  voidrevokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)
     BeanContextServiceProviders wishing to remove a currently registered service from this context may do so via invocation of this method.


Constructor Detail
ControlBeanContextServicesSupport
public ControlBeanContextServicesSupport()(Code)
Constructor.



ControlBeanContextServicesSupport
public ControlBeanContextServicesSupport(BeanContextServices peer)(Code)
Constructor which allows delegate to be passed in.
Parameters:
  peer - BeanContextServices peer.




Method Detail
addBeanContextServicesListener
public void addBeanContextServicesListener(BeanContextServicesListener bcsl)(Code)
Adds a BeanContextServicesListener to this BeanContext.
Parameters:
  bcsl - the BeanContextServicesListener to add



addService
public boolean addService(Class serviceClass, BeanContextServiceProvider serviceProvider)(Code)
Adds a service to this BeanContext. BeanContextServiceProviders call this method to register a particular service with this context. If the service has not previously been added, the BeanContextServices associates the service with the BeanContextServiceProvider and fires a BeanContextServiceAvailableEvent to all currently registered BeanContextServicesListeners. The method then returns true, indicating that the addition of the service was successful. If the given service has already been added, this method simply returns false.
Parameters:
  serviceClass - the service to add
Parameters:
  serviceProvider - the BeanContextServiceProviderassociated with the service true if service was added.



getCurrentServiceClasses
public Iterator getCurrentServiceClasses()(Code)
Gets the currently available services for this context. an Iterator consisting of thecurrently available services



getCurrentServiceSelectors
public Iterator getCurrentServiceSelectors(Class serviceClass)(Code)
Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.
Parameters:
  serviceClass - the specified service the currently available service selectorsfor the named serviceClass



getService
public Object getService(BeanContextChild child, Object requestor, Class serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException(Code)
A BeanContextChild, or any arbitrary object associated with a BeanContextChild, may obtain a reference to a currently registered service from its nesting BeanContextServices via invocation of this method. When invoked, this method gets the service by calling the getService() method on the underlying BeanContextServiceProvider.
Parameters:
  child - the BeanContextChildassociated with this request
Parameters:
  requestor - the object requesting the service
Parameters:
  serviceClass - class of the requested service
Parameters:
  serviceSelector - the service dependent parameter
Parameters:
  bcsrl - theBeanContextServiceRevokedListener to notifyif the service should later become revoked a reference to this context's namedService as requested or null
throws:
  java.util.TooManyListenersException -



hasService
public synchronized boolean hasService(Class serviceClass)(Code)
Reports whether or not a given service is currently available from this context.
Parameters:
  serviceClass - the service in question true if the service is available



initialize
protected void initialize()(Code)
Initialize data structures.



releaseBeanContextResources
protected synchronized void releaseBeanContextResources()(Code)
Invoked when all resources obtained from the current nested bean context need to be released. For BeanContextServices this means revoke any services obtained from a delegate services provider. Typically invoked when the parent context is changed.



releaseService
public void releaseService(BeanContextChild child, Object requestor, Object service)(Code)
Releases a BeanContextChild's (or any arbitrary object associated with a BeanContextChild) reference to the specified service by calling releaseService() on the underlying BeanContextServiceProvider.
Parameters:
  child - the BeanContextChild
Parameters:
  requestor - the requestor
Parameters:
  service - the service



removeBeanContextServicesListener
public void removeBeanContextServicesListener(BeanContextServicesListener bcsl)(Code)
Removes a BeanContextServicesListener from this BeanContext.
Parameters:
  bcsl - the BeanContextServicesListenerto remove from this context



revokeService
public void revokeService(Class serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)(Code)
BeanContextServiceProviders wishing to remove a currently registered service from this context may do so via invocation of this method. Upon revocation of the service, the BeanContextServices fires a BeanContextServiceRevokedEvent to its list of currently registered BeanContextServiceRevokedListeners and BeanContextServicesListeners.
Parameters:
  serviceClass - the service to revoke from this BeanContextServices
Parameters:
  serviceProvider - the BeanContextServiceProvider associated withthis particular service that is being revoked
Parameters:
  revokeCurrentServicesNow - a value of trueindicates an exceptional circumstance where theBeanContextServiceProvider orBeanContextServices wishes to immediatelyterminate service to all currently outstanding referencesto the specified service.



Methods inherited from org.apache.beehive.controls.runtime.webcontext.ControlBeanContextSupport
public boolean add(Object o)(Code)(Java Doc)
public boolean addAll(Collection c)(Code)(Java Doc)
public void addBeanContextMembershipListener(BeanContextMembershipListener bcml)(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 URL getResource(String name, BeanContextChild bcc) throws IllegalArgumentException(Code)(Java Doc)
public InputStream getResourceAsStream(String name, BeanContextChild bcc) throws IllegalArgumentException(Code)(Java Doc)
protected void initialize()(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 Iterator iterator()(Code)(Java Doc)
public boolean needsGui()(Code)(Java Doc)
public void okToUseGui()(Code)(Java Doc)
public void propertyChange(PropertyChangeEvent evt)(Code)(Java Doc)
final public void readChildren(ObjectInputStream in) throws IOException, ClassNotFoundException(Code)(Java Doc)
public boolean remove(Object o)(Code)(Java Doc)
public boolean removeAll(Collection c)(Code)(Java Doc)
public void removeBeanContextMembershipListener(BeanContextMembershipListener bcml)(Code)(Java Doc)
public boolean retainAll(Collection c)(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 evt) throws PropertyVetoException(Code)(Java Doc)
final public void writeChildren(ObjectOutputStream oos) throws IOException(Code)(Java Doc)

Methods inherited from org.apache.beehive.controls.runtime.webcontext.ControlBeanContextChildSupport
public void addPropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc)
public void addVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)(Java Doc)
protected void firePropertyChange(String name, Object oldValue, Object newValue)(Code)(Java Doc)
public synchronized BeanContext getBeanContext()(Code)(Java Doc)
protected BeanContextChild getPeer()(Code)(Java Doc)
protected void releaseBeanContextResources()(Code)(Java Doc)
public void removePropertyChangeListener(String name, PropertyChangeListener pcl)(Code)(Java Doc)
public void removeVetoableChangeListener(String name, VetoableChangeListener vcl)(Code)(Java Doc)
public void serviceAvailable(BeanContextServiceAvailableEvent bcsae)(Code)(Java Doc)
public void serviceRevoked(BeanContextServiceRevokedEvent bcsre)(Code)(Java Doc)
public synchronized void setBeanContext(BeanContext bc) 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.