|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.handlers.providedservice.CreationStrategy
org.apache.felix.ipojo.handlers.providedservice.strategy.ConfigurableCreationStrategy
public abstract class ConfigurableCreationStrategy
This CreationStrategy
is here to ease customization of the strategy
by hiding all the reflection stuff.
Constructor Summary | |
---|---|
ConfigurableCreationStrategy()
|
Method Summary | |
---|---|
Object |
getService(Bundle bundle,
ServiceRegistration registration)
Method called when a bundle want to access a service. |
protected abstract IPOJOServiceFactory |
getServiceFactory(InstanceManager manager)
User provided CreationStrategy MUST implement this method to
provide the real iPOJO ServiceFactory instance. |
void |
onPublication(InstanceManager manager,
String[] specifications,
Properties props)
Method called when the underlying iPOJO Service factory is published. |
void |
onUnpublication()
Method called when the underlying iPOJO Service factory is un-published. |
void |
ungetService(Bundle bundle,
ServiceRegistration registration,
Object service)
Method called when a bundle release a service. |
Methods inherited from class org.apache.felix.ipojo.handlers.providedservice.CreationStrategy |
---|
isGetServiceMethod, isUngetServiceMethod |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurableCreationStrategy()
Method Detail |
---|
public void onPublication(InstanceManager manager, String[] specifications, Properties props)
onPublication
in class CreationStrategy
manager
- the instance managerspecifications
- the provided specificationsprops
- the service propertiesCreationStrategy.onPublication(org.apache.felix.ipojo.InstanceManager, java.lang.String[], java.util.Properties)
public void onUnpublication()
onUnpublication
in class CreationStrategy
CreationStrategy.onUnpublication()
public Object getService(Bundle bundle, ServiceRegistration registration)
bundle
- the asking bundleregistration
- the service registration
ServiceFactory.getService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration)
public void ungetService(Bundle bundle, ServiceRegistration registration, Object service)
bundle
- the bundleregistration
- the service registrationservice
- the service objectServiceFactory.ungetService(org.osgi.framework.Bundle, org.osgi.framework.ServiceRegistration, java.lang.Object)
protected abstract IPOJOServiceFactory getServiceFactory(InstanceManager manager)
CreationStrategy
MUST implement this method to
provide the real iPOJO ServiceFactory instance.
manager
- InstanceManager
that the factory could use
IPOJOServiceFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |