Codota Logo
VersionProperty.toString
Code IndexAdd Codota to your IDE (free)

How to use
toString
method
in
org.jflux.api.common.rk.config.VersionProperty

Best Java code snippets using org.jflux.api.common.rk.config.VersionProperty.toString (Showing top 16 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.jflux/org.jflux.api.common.rk

  public static <Conf,Param> 
      SingleServiceListener<ConfigurationWriter<Conf,Param>> 
      createWriterServiceListener(BundleContext context, 
          Class<Conf> configClass,
          Class<Param> paramClass,
          VersionProperty configFormat,
          String serviceFilter){
    Properties props = new Properties();
    props.put(Constants.CONFIG_FORMAT_VERSION, 
        configFormat.toString());
    props.put(Constants.CONFIG_CLASS, 
        configClass.getName());
    props.put(Constants.CONFIG_PARAM_CLASS, 
        paramClass.getName());
    String writerFilter = OSGiUtils.createServiceFilter(props);
    if(serviceFilter != null && !serviceFilter.isEmpty()){
      writerFilter = "(&"+writerFilter+"("+serviceFilter+"))";
    }
    return new SingleServiceListener(
        ConfigurationWriter.class, context, serviceFilter);
  }
}
origin: org.rwshop/org.rwshop.nb.motion

private static OSGiComponent launchJointGroupConfig(
    BundleContext context, File file, String paramId){
  Properties props = new Properties();
  props.put(Constants.CONFIG_PARAM_ID, paramId);
  props.put(Constants.CONFIG_FORMAT_VERSION, 
      RobotJointGroupConfigXMLReader.VERSION.toString());
  ServiceLifecycleProvider lifecycle = 
      new SimpleLifecycle(file, File.class, props);
  OSGiComponent paramComp = new OSGiComponent(context, lifecycle);
  paramComp.start();
  return paramComp;
}

origin: org.jflux/org.jflux.api.common.rk

public static ServiceRegistration registerAddOnDriver(
    BundleContext context, ServiceAddOnDriver driver, 
    Properties props){
  Dictionary<String, Object> propTable = new Hashtable<String, Object>();
  if(context == null || driver == null){
    throw new NullPointerException();
  }
  
  if(props != null){
    for(Object prop: props.keySet()) {
      propTable.put(prop.toString(), props.get(prop));
    }
  }
  propTable.put(Constants.SERVICE_VERSION, 
      driver.getServiceVersion().toString());
  propTable.put(Constants.CONFIG_FORMAT_VERSION, 
      driver.getConfigurationFormat().toString());
  ServiceRegistration reg = context.registerService(
      ServiceAddOnDriver.class.getName(), driver, propTable);
  if(reg == null){
    theLogger.log(Level.WARNING, 
        "Unknown error occured while registering "
        + "ServiceConfigurationWriter.");
  }else{
    theLogger.log(Level.INFO, 
        "ServiceAddOnDriver registered successfully.");
  }
  return reg;
}

origin: org.rwshop/org.rwshop.nb.motion

  private static OSGiComponent launchRobotConfig(
      BundleContext context, File file, String paramId){
    Properties props = new Properties();
    props.put(Constants.CONFIG_PARAM_ID, paramId);
    props.put(Constants.CONFIG_FORMAT_VERSION, 
        RobotConfigXMLReader.VERSION.toString());
    ServiceLifecycleProvider lifecycle = 
        new SimpleLifecycle(file, File.class, props);
    OSGiComponent paramComp = new OSGiComponent(context, lifecycle);
    paramComp.start();
    return paramComp;
  }
}
origin: org.jflux/org.jflux.api.common.rk

    + "and class={1}",
    new Object[]{
      serviceVersion.toString(), serviceClass.getName()});
return null;
origin: org.jflux/org.jflux.api.common.rk

    + "formatVersion={0}, configClass={1} "
    + "and paramClass={2}",
    new Object[]{configFormat.toString(), 
      configClass.getName(), paramClass.getName()});
return null;
origin: org.jflux/org.jflux.api.common.rk

    + "formatVersion={0}, configClass={1} "
    + "and paramClass={2}",
    new Object[]{configFormat.toString(), 
      configClass.getName(), paramClass.getName()});
return null;
origin: org.jflux/org.jflux.api.common.rk

    serviceVersion.toString());
props.put(Constants.CONFIG_FORMAT_VERSION, 
    configFormat.toString());
String filter = OSGiUtils.createServiceFilter(props);
ServiceReference[] refs;
origin: org.cogchar/org.cogchar.bundle.bind.mechio

private static <Param> OSGiComponent launchJointGroupConfig(
    BundleContext context, Param jointGroupConfigParam, 
    Class<Param> paramClass, String configParamId, 
    Configuration<String> jgSvcConf){
  Properties props = new Properties();
  props.put(Constants.CONFIG_PARAM_ID, configParamId);
  props.put(Constants.CONFIG_FORMAT_VERSION, 
      get(VersionProperty.class, jgSvcConf, 
          CONF_CONFIG_READER_VERSION).toString());
  
  ServiceLifecycleProvider lifecycle = new SimpleLifecycle(
      jointGroupConfigParam, paramClass, props);
  OSGiComponent paramComp = new OSGiComponent(context, lifecycle);
  paramComp.start();
  startedJointGroupConfigs.add(paramComp);
  return paramComp;
}

origin: org.jflux/org.jflux.api.common.rk

public static ManagedService registerFactory(
    BundleContext context, ServiceFactory fact, Properties props){
  if(context == null || fact == null){
    throw new NullPointerException();
  }
  if(props == null){
    props = new Properties();
  }
  props.put(Constants.SERVICE_VERSION, 
      fact.getServiceVersion().toString());
  props.put(Constants.SERVICE_CLASS, 
      fact.getServiceClass().getName());
  props.put(Constants.CONFIG_CLASS, 
      fact.getConfigurationClass().getName());
  ManagedService ms = new OSGiComponent(context, 
      new SimpleLifecycle(fact, ServiceFactory.class), props);
  ms.start();
  return ms;
}

origin: org.jflux/org.jflux.api.common.rk

private DependencyDescriptor buildFactoryDescriptor(Class<T> serviceClass, 
    Class<C> configClass, VersionProperty serviceVersion){
  DescriptorBuilder descs = 
      new DescriptorBuilder(theServiceFactory, ServiceFactory.class)
      .with(Constants.SERVICE_CLASS, serviceClass.getName())
      .with(Constants.SERVICE_VERSION, serviceVersion.toString());
  if(configClass != null){
    descs.with(Constants.CONFIG_CLASS, configClass.getName());
  }
  return descs.getDescriptor();
}

origin: org.jflux/org.jflux.api.common.rk

private DependencyDescriptor buildLoaderDescriptor(Class<C> configClass, 
    Class<P> paramClass, VersionProperty configFormat){
  DescriptorBuilder descs = new DescriptorBuilder(
      theConfigLoader, ConfigurationLoader.class)
      .with(Constants.CONFIG_FORMAT_VERSION, configFormat.toString());
  if(configClass != null){
    descs.with(Constants.CONFIG_CLASS, configClass.getName());
  }if(paramClass != null){
    descs.with(Constants.CONFIG_PARAM_CLASS, paramClass.getName());
  }
  return descs.getDescriptor();
}

origin: org.jflux/org.jflux.api.common.rk

public static ManagedService registerConfigWriter(
    BundleContext context, ConfigurationWriter writer, 
    Properties props){
  if(context == null || writer == null){
    throw new NullPointerException();
  }
  if(props == null){
    props = new Properties();
  }
  props.put(Constants.CONFIG_FORMAT_VERSION, 
      writer.getConfigurationFormat().toString());
  props.put(Constants.CONFIG_CLASS, 
      writer.getConfigurationClass().getName());
  props.put(Constants.CONFIG_PARAM_CLASS, 
      writer.getParameterClass().getName());
  ManagedService ms = new OSGiComponent(context, 
      new SimpleLifecycle(writer, ConfigurationWriter.class), props);
  ms.start();
  return ms;
}

origin: org.jflux/org.jflux.api.common.rk

public static ManagedService registerConfigLoader(
    BundleContext context, ConfigurationLoader loader, 
    Properties props){
  if(context == null || loader == null){
    throw new NullPointerException();
  }
  if(props == null){
    props = new Properties();
  }
  props.put(Constants.CONFIG_FORMAT_VERSION, 
      loader.getConfigurationFormat().toString());
  props.put(Constants.CONFIG_CLASS, 
      loader.getConfigurationClass().getName());
  props.put(Constants.CONFIG_PARAM_CLASS, 
      loader.getParameterClass().getName());
  ManagedService ms = new OSGiComponent(context, 
      new SimpleLifecycle(loader, ConfigurationLoader.class), props);
  ms.start();
  return ms;
}

origin: org.jflux/org.jflux.api.common.rk

private DependencyDescriptor buildParamDescriptor(
    Class<P> paramClass, VersionProperty configFormat, String paramId){
  DescriptorBuilder descs = 
      new DescriptorBuilder(theLoaderParam, paramClass)
      .with(Constants.CONFIG_FORMAT_VERSION, configFormat.toString());
  if(paramId != null){
    descs.with(Constants.CONFIG_PARAM_ID, paramId);
  }
  return descs.getDescriptor();
}

origin: org.jflux/org.jflux.api.common.rk

    params.getServiceVersion().toString());
if(props != null && !props.isEmpty()){
  myRegistrationProperties.putAll(props);
org.jflux.api.common.rk.configVersionPropertytoString

Popular methods of VersionProperty

  • <init>
    Creates a new VersionPropety with the given name and number.
  • getName
    Returns the version name.
  • getNumber
    Returns the version number.
  • display
    Returns a string representing the version which is formatted for displaying.
  • firePropertyChange

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Menu (java.awt)
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Notification (javax.management)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now