|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.handlers.providedservice.ProvidedService
public class ProvidedService
Provided Service represent a provided service by the component.
Field Summary | |
---|---|
static int |
REGISTERED
Service State : REGISTRED. |
static int |
SERVICE_FACTORY
Factory policy : SERVICE_FACTORY. |
static int |
SINGLETON_FACTORY
Factory Policy : SINGLETON_FACTORY. |
static int |
STATIC_FACTORY
Factory policy : STATIC_FACTORY. |
static int |
UNREGISTERED
Service State : UNREGISTRED. |
Constructor Summary | |
---|---|
ProvidedService(ProvidedServiceHandler handler,
java.lang.String[] specification,
int factoryPolicy)
Construct a provided service object. |
Method Summary | |
---|---|
protected void |
addProperties(java.util.Dictionary props)
Add properties to the list. |
protected void |
deleteProperties(java.util.Dictionary props)
Remove properties from the list. |
protected InstanceManager |
getInstanceManager()
|
Property[] |
getProperties()
Get the list of properties attached to the service registration. |
java.lang.Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration)
Return a service object for the dependency. |
org.osgi.framework.ServiceReference |
getServiceReference()
Get the service reference of the service registration. |
org.osgi.framework.ServiceRegistration |
getServiceRegistration()
Get the service registration. |
java.lang.String[] |
getServiceSpecification()
Get the published service specifications. |
int |
getState()
Get the current provided service state. |
protected void |
registerService()
Register the service. |
protected void |
setProperties(Property[] props)
Add properties to the provided service. |
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
java.lang.Object service)
The unget method. |
protected void |
unregisterService()
Unregister the service. |
void |
update()
Update the service properties. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REGISTERED
public static final int UNREGISTERED
public static final int SINGLETON_FACTORY
public static final int SERVICE_FACTORY
public static final int STATIC_FACTORY
Constructor Detail |
---|
public ProvidedService(ProvidedServiceHandler handler, java.lang.String[] specification, int factoryPolicy)
handler
- : the provided service handler.specification
- : specifications provided by this provided servicefactoryPolicy
- : service providing policyMethod Detail |
---|
protected void setProperties(Property[] props)
props
- : the properties to attached to the service registrationpublic org.osgi.framework.ServiceReference getServiceReference()
public java.lang.Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService
in interface org.osgi.framework.ServiceFactory
bundle
- : the bundleregistration
- : the service registration of the registred service
ServiceFactory.getService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration)
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, java.lang.Object service)
ungetService
in interface org.osgi.framework.ServiceFactory
bundle
- : bundleregistration
- : service registrationservice
- : service objectServiceFactory.ungetService(org.osgi.framework.Bundle,
org.osgi.framework.ServiceRegistration, java.lang.Object)
protected void registerService()
protected void unregisterService()
public int getState()
protected InstanceManager getInstanceManager()
public Property[] getProperties()
public void update()
protected void addProperties(java.util.Dictionary props)
props
- : properties to addprotected void deleteProperties(java.util.Dictionary props)
props
- : properties to removepublic java.lang.String[] getServiceSpecification()
public org.osgi.framework.ServiceRegistration getServiceRegistration()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |