|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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)
request an instance of a service, |
void |
releaseService(BeanContextServices bcs,
Object requestor,
Object service)
release the service |
Method Detail |
public Object getService(BeanContextServices bcs, Object requestor, Class serviceClass, Object serviceSelector)
requestor
- The object requesting the serviceserviceClass
- The service requestedserviceSelector
- Additional parameterisation of the servicepublic void releaseService(BeanContextServices bcs, Object requestor, Object service)
public Iterator getCurrentServiceSelectors(BeanContextServices bcs, Class serviceClass)
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |