|
||||||||||
| 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
public abstract class CreationStrategy
Creation strategy to creation service object. This class is extended by all service object creation policy.
| Constructor Summary | |
|---|---|
CreationStrategy()
|
|
| Method Summary | |
|---|---|
static boolean |
isGetServiceMethod(Method method)
Checks if the given method object is the IPOJOServiceFactory#getService(ComponentInstance)
method. |
static boolean |
isUngetServiceMethod(Method method)
Checks if the given method object is the IPOJOServiceFactory#ungetService(ComponentInstance, Object)
method. |
abstract void |
onPublication(InstanceManager instance,
String[] interfaces,
Properties props)
Method called when the service is registered. |
abstract void |
onUnpublication()
Method called when the service in unregistered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.osgi.framework.ServiceFactory |
|---|
getService, ungetService |
| Constructor Detail |
|---|
public CreationStrategy()
| Method Detail |
|---|
public abstract void onPublication(InstanceManager instance,
String[] interfaces,
Properties props)
instance - the instance registering the service.interfaces - the exposed service specification interfacesprops - the published properties.public abstract void onUnpublication()
public static boolean isGetServiceMethod(Method method)
IPOJOServiceFactory#getService(ComponentInstance)
method.
method - the method to check
true if the method is the getService method
false otherwise.public static boolean isUngetServiceMethod(Method method)
IPOJOServiceFactory#ungetService(ComponentInstance, Object)
method.
method - the method to check
true if the method is the ungetService method
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||