Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
One of the primary functions of a BeanContext is to act a as rendezvous between JavaBeans, and BeanContextServiceProviders.
A JavaBean nested within a BeanContext, may ask that BeanContext to provide an instance of a "service", based upon a reference to a Java Class object that represents that service.
If such a service has been registered with the context, or one of its nesting context's, in the case where a context delegate to its context to satisfy a service request, then the BeanContextServiceProvider associated with the service is asked to provide an instance of that service.
The ServcieProvider may always return the same instance, or it may construct a new instance for each request.
Method Summary | |
Iterator | getCurrentServiceSelectors(BeanContextServices bcs,
Class serviceClass)
|
Object | getService(BeanContextServices bcs,
Object requestor,
Class serviceClass,
Object serviceSelector)
|
void | releaseService(BeanContextServices bcs,
Object requestor,
Object service)
|
Method Detail |
public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector)
requestor
- The object requesting the service
serviceClass
- The service requested
serviceSelector
- Additional parameterisation of the service
public void releaseService(BeanContextServices bcs, Object requestor, Object service)
public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass)
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |