Deprecated
for removal since 23.
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 ServiceProvider may always return the same instance, or it may construct a new instance for each request.
Modifier and Type | Method and Description |
---|---|
public Iterator | Returns: the current service selectors for the specified serviceClassthe bcs, Class<?> BeanContextServices for this requestthe specified service serviceClass)
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Invoked by |
public Object | Returns: a reference to the requested serviceThe bcs, Object BeanContextServices associated with this
particular request. This parameter enables the
BeanContextServiceProvider to distinguish service
requests from multiple sources.The object requesting the service requestor, Class<?> The service requested serviceClass, Object the service dependent parameter
for a particular service, or serviceSelector)null if not applicable.
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Invoked by |
public void | releaseService(BeanContextServices
the bcs, Object BeanContextServices associated with this
particular release requestthe object requesting the service to be released requestor, Object the service that is to be released service)
References Deprecated
BeanContextServices is deprecated or references (maybe indirectly) at least one deprecated element.
Invoked by |
getCurrentServiceSelectors | back to summary |
---|---|
public Iterator References Deprecated
See corresponding docs for further information. Invoked by
|
getService | back to summary |
---|---|
public Object getService(BeanContextServices bcs, Object requestor, Class<?> serviceClass, Object serviceSelector)
References Deprecated
See corresponding docs for further information. Invoked by
|
releaseService | back to summary |
---|---|
public void releaseService(BeanContextServices bcs, Object requestor, Object service)
References Deprecated
See corresponding docs for further information. Invoked by
|