public abstract class CMUtils
extends java.lang.Object
| Constructor and Description |
|---|
CMUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyMapOntoInstance(java.lang.Object instance,
java.util.Map<java.lang.String,?> properties,
org.springframework.beans.factory.support.AbstractBeanFactory beanFactory)
Injects the properties from the given Map to the given object.
|
static void |
bulkUpdate(UpdateCallback callback,
java.util.Collection<?> instances,
java.util.Map<?,?> properties) |
static UpdateCallback |
createCallback(boolean autowireOnUpdate,
java.lang.String methodName,
org.springframework.beans.factory.BeanFactory beanFactory) |
static java.util.Map |
getConfiguration(org.osgi.framework.BundleContext bundleContext,
java.lang.String pid,
long initTimeout)
Returns a map containing the Configuration Admin entry with given pid.
|
static org.osgi.framework.ServiceRegistration |
registerManagedService(org.osgi.framework.BundleContext bundleContext,
org.osgi.service.cm.ManagedService listener,
java.lang.String pid) |
public static void applyMapOntoInstance(java.lang.Object instance,
java.util.Map<java.lang.String,?> properties,
org.springframework.beans.factory.support.AbstractBeanFactory beanFactory)
instance - bean instance to configureproperties - beanFactory - public static void bulkUpdate(UpdateCallback callback, java.util.Collection<?> instances, java.util.Map<?,?> properties)
public static UpdateCallback createCallback(boolean autowireOnUpdate, java.lang.String methodName, org.springframework.beans.factory.BeanFactory beanFactory)
public static java.util.Map getConfiguration(org.osgi.framework.BundleContext bundleContext,
java.lang.String pid,
long initTimeout)
throws java.io.IOException
bundleContext - pid - initTimeout - java.io.IOExceptionpublic static org.osgi.framework.ServiceRegistration registerManagedService(org.osgi.framework.BundleContext bundleContext,
org.osgi.service.cm.ManagedService listener,
java.lang.String pid)