org.robokind.api.common.services
Class ServiceUtils

java.lang.Object
  extended by org.robokind.api.common.services.ServiceUtils

public class ServiceUtils
extends Object

Author:
Matthew Stevenson

Constructor Summary
ServiceUtils()
           
 
Method Summary
static
<Conf,Param>
SingleServiceListener<ConfigurationWriter<Conf,Param>>
createWriterServiceListener(org.osgi.framework.BundleContext context, Class<Conf> configClass, Class<Param> paramClass, VersionProperty configFormat, String serviceFilter)
           
static org.osgi.framework.ServiceRegistration registerConfigLoader(org.osgi.framework.BundleContext context, ConfigurationLoader loader)
           
static org.osgi.framework.ServiceRegistration registerConfigLoader(org.osgi.framework.BundleContext context, ConfigurationLoader loader, Properties props)
           
static org.osgi.framework.ServiceRegistration registerConfigWriter(org.osgi.framework.BundleContext context, ConfigurationWriter writer)
           
static org.osgi.framework.ServiceRegistration registerConfigWriter(org.osgi.framework.BundleContext context, ConfigurationWriter writer, Properties props)
           
static org.osgi.framework.ServiceRegistration registerFactory(org.osgi.framework.BundleContext context, ServiceFactory fact)
          Registers the given ServiceFactory with the factory's Service Version, Service class, and Config class.
static org.osgi.framework.ServiceRegistration registerFactory(org.osgi.framework.BundleContext context, ServiceFactory fact, Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceUtils

public ServiceUtils()
Method Detail

registerFactory

public static org.osgi.framework.ServiceRegistration registerFactory(org.osgi.framework.BundleContext context,
                                                                     ServiceFactory fact)
Registers the given ServiceFactory with the factory's Service Version, Service class, and Config class. *

Parameters:
context - BundleContext for registering the factory
fact - ServiceFactory to register
Returns:
ServiceRegistration from registering the factory

registerFactory

public static org.osgi.framework.ServiceRegistration registerFactory(org.osgi.framework.BundleContext context,
                                                                     ServiceFactory fact,
                                                                     Properties props)

registerConfigLoader

public static org.osgi.framework.ServiceRegistration registerConfigLoader(org.osgi.framework.BundleContext context,
                                                                          ConfigurationLoader loader)

registerConfigLoader

public static org.osgi.framework.ServiceRegistration registerConfigLoader(org.osgi.framework.BundleContext context,
                                                                          ConfigurationLoader loader,
                                                                          Properties props)

registerConfigWriter

public static org.osgi.framework.ServiceRegistration registerConfigWriter(org.osgi.framework.BundleContext context,
                                                                          ConfigurationWriter writer)

registerConfigWriter

public static org.osgi.framework.ServiceRegistration registerConfigWriter(org.osgi.framework.BundleContext context,
                                                                          ConfigurationWriter writer,
                                                                          Properties props)

createWriterServiceListener

public static <Conf,Param> SingleServiceListener<ConfigurationWriter<Conf,Param>> createWriterServiceListener(org.osgi.framework.BundleContext context,
                                                                                                              Class<Conf> configClass,
                                                                                                              Class<Param> paramClass,
                                                                                                              VersionProperty configFormat,
                                                                                                              String serviceFilter)


Copyright © 2011-2012. All Rights Reserved.