public abstract class CreationStrategy
extends java.lang.Object
implements org.osgi.framework.ServiceFactory
| Constructor and Description |
|---|
CreationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isGetServiceMethod(java.lang.reflect.Method method)
Checks if the given method object is the
IPOJOServiceFactory.getService(org.apache.felix.ipojo.ComponentInstance)
method. |
static boolean |
isUngetServiceMethod(java.lang.reflect.Method method)
Checks if the given method object is the
IPOJOServiceFactory.ungetService(org.apache.felix.ipojo.ComponentInstance, Object)
method. |
abstract void |
onPublication(InstanceManager instance,
java.lang.String[] interfaces,
java.util.Properties props)
Method called when the service is registered.
|
abstract void |
onUnpublication()
Method called when the service in unregistered.
|
public abstract void onPublication(InstanceManager instance, java.lang.String[] interfaces, java.util.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(java.lang.reflect.Method method)
IPOJOServiceFactory.getService(org.apache.felix.ipojo.ComponentInstance)
method.method - the method to checktrue if the method is the getService method
false otherwise.public static boolean isUngetServiceMethod(java.lang.reflect.Method method)
IPOJOServiceFactory.ungetService(org.apache.felix.ipojo.ComponentInstance, Object)
method.method - the method to checktrue if the method is the ungetService method
false otherwise.Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.