public abstract class CMUtils extends Object
Constructor and Description |
---|
CMUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
applyMapOntoInstance(Object instance,
Map<String,?> properties,
org.springframework.beans.factory.support.AbstractBeanFactory beanFactory)
Injects the properties from the given Map to the given object.
|
static void |
bulkUpdate(org.eclipse.gemini.blueprint.compendium.internal.cm.UpdateCallback callback,
Collection<?> instances,
Map<?,?> properties) |
static org.eclipse.gemini.blueprint.compendium.internal.cm.UpdateCallback |
createCallback(boolean autowireOnUpdate,
String methodName,
org.springframework.beans.factory.BeanFactory beanFactory) |
static Map |
getConfiguration(org.osgi.framework.BundleContext bundleContext,
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,
String pid) |
public static void applyMapOntoInstance(Object instance, Map<String,?> properties, org.springframework.beans.factory.support.AbstractBeanFactory beanFactory)
instance
- bean instance to configureproperties
- beanFactory
- public static void bulkUpdate(org.eclipse.gemini.blueprint.compendium.internal.cm.UpdateCallback callback, Collection<?> instances, Map<?,?> properties)
public static org.eclipse.gemini.blueprint.compendium.internal.cm.UpdateCallback createCallback(boolean autowireOnUpdate, String methodName, org.springframework.beans.factory.BeanFactory beanFactory)
public static Map getConfiguration(org.osgi.framework.BundleContext bundleContext, String pid, long initTimeout) throws IOException
bundleContext
- pid
- initTimeout
- IOException
public static org.osgi.framework.ServiceRegistration registerManagedService(org.osgi.framework.BundleContext bundleContext, org.osgi.service.cm.ManagedService listener, String pid)
Copyright © 2006–2018. All rights reserved.