|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.http.jetty.internal.JettyManagedService
public class JettyManagedService
Method Summary | |
---|---|
Object |
getService(Bundle bundle,
ServiceRegistration registration)
Creates a new service object. |
void |
ungetService(Bundle bundle,
ServiceRegistration registration,
Object service)
Releases a service object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Object getService(Bundle bundle, ServiceRegistration registration)
ServiceFactory
The Framework invokes this method the first time the specified
bundle
requests a service object using the
BundleContext.getService(ServiceReference)
method. The
service factory can then return a specific service object for each
bundle.
The Framework caches the value returned (unless it is null
),
and will return the same service object on any future call to
BundleContext.getService
for the same bundle. This means the
Framework must not allow this method to be concurrently called for the
same bundle.
The Framework will check if the returned service object is an instance of
all the classes named when the service was registered. If not, then
null
is returned to the bundle.
getService
in interface ServiceFactory
bundle
- The bundle using the service.registration
- The ServiceRegistration
object for the
service.
BundleContext.getService(org.osgi.framework.ServiceReference)
public void ungetService(Bundle bundle, ServiceRegistration registration, Object service)
ServiceFactory
The Framework invokes this method when a service has been released by a bundle. The service object may then be destroyed.
ungetService
in interface ServiceFactory
bundle
- The bundle releasing the service.registration
- The ServiceRegistration
object for the
service.service
- The service object returned by a previous call to the
ServiceFactory.getService
method.BundleContext.ungetService(org.osgi.framework.ServiceReference)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |