Package | Description |
---|---|
org.apache.felix.framework | |
org.osgi.framework |
Framework Package Version 1.8.
|
Modifier and Type | Method and Description |
---|---|
ServiceRegistration<?> |
ServiceRegistry.registerService(Bundle bundle,
String[] classNames,
Object svcObj,
Dictionary<?,?> dict)
Register a new service
Caller must fire service event as this method is not doing it!
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceRegistry.unregisterService(Bundle bundle,
ServiceRegistration<?> reg)
Unregister a service
|
Modifier and Type | Method and Description |
---|---|
<S> ServiceRegistration<S> |
BundleContext.registerService(Class<S> clazz,
S service,
Dictionary<String,?> properties)
Registers the specified service object with the specified properties
under the name of the specified class with the Framework.
|
<S> ServiceRegistration<S> |
BundleContext.registerService(Class<S> clazz,
ServiceFactory<S> factory,
Dictionary<String,?> properties)
Registers the specified service factory object with the specified
properties under the name of the specified class with the Framework.
|
ServiceRegistration<?> |
BundleContext.registerService(String[] clazzes,
Object service,
Dictionary<String,?> properties)
Registers the specified service object with the specified properties
under the specified class names into the Framework.
|
ServiceRegistration<?> |
BundleContext.registerService(String clazz,
Object service,
Dictionary<String,?> properties)
Registers the specified service object with the specified properties
under the specified class name with the Framework.
|
Modifier and Type | Method and Description |
---|---|
S |
ServiceFactory.getService(Bundle bundle,
ServiceRegistration<S> registration)
Returns a service object for a bundle.
|
S |
PrototypeServiceFactory.getService(Bundle bundle,
ServiceRegistration<S> registration)
Returns a service object for a caller.
|
void |
ServiceFactory.ungetService(Bundle bundle,
ServiceRegistration<S> registration,
S service)
Releases a service object customized for a bundle.
|
void |
PrototypeServiceFactory.ungetService(Bundle bundle,
ServiceRegistration<S> registration,
S service)
Releases a service object customized for a caller.
|
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.