Codota Logo
EnginesTracker.initEngineTracker
Code IndexAdd Codota to your IDE (free)

How to use
initEngineTracker
method
in
org.apache.stanbol.enhancer.servicesapi.impl.EnginesTracker

Best Java code snippets using org.apache.stanbol.enhancer.servicesapi.impl.EnginesTracker.initEngineTracker (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: apache/stanbol

/**
 * Creates a new {@link EnginesTracker} for the parsed {@link BundleContext}
 * and engine names.
 * Examples:
 * <code><pre>
 *     //Track all active engines with a customiser
 *     new EnginesTracker(context,null,customiser);
 *     
 *     //Track all engines referenced by a Chain and use the customiser
 *     //to react on changes
 *     new EnginesTracker(context,chain.getEngineNames(),customiser);
 * </pre></code>
 * @param context the bundle context used to track engines
 * @param engineNames the names of the engines to track. Parse <code>null</code>
 * or an {@link Collections#emptySet()} to track all engines
 * @param customizer the {@link ServiceTrackerCustomizer} used with this tracker.
 */
public EnginesTracker(BundleContext context, Set<String> engineNames, ServiceTrackerCustomizer customizer){
  if(context == null){
    throw new IllegalArgumentException("The parsed BundleContext MUST NOT be NULL!");
  }
  initEngineTracker(context,engineNames,customizer);
}

origin: org.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

/**
 * Creates a new {@link EnginesTracker} for the parsed {@link BundleContext}
 * and engine names.
 * Examples:
 * <code><pre>
 *     //Track all active engines with a customiser
 *     new EnginesTracker(context,null,customiser);
 *     
 *     //Track all engines referenced by a Chain and use the customiser
 *     //to react on changes
 *     new EnginesTracker(context,chain.getEngineNames(),customiser);
 * </pre></code>
 * @param context the bundle context used to track engines
 * @param engineNames the names of the engines to track. Parse <code>null</code>
 * or an {@link Collections#emptySet()} to track all engines
 * @param customizer the {@link ServiceTrackerCustomizer} used with this tracker.
 */
public EnginesTracker(BundleContext context, Set<String> engineNames, ServiceTrackerCustomizer customizer){
  if(context == null){
    throw new IllegalArgumentException("The parsed BundleContext MUST NOT be NULL!");
  }
  initEngineTracker(context,engineNames,customizer);
}

origin: org.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

protected EnginesTracker(){/* nothing to do here */ }    /**
 * Creates a new {@link EnginesTracker} for the parsed {@link BundleContext}
 * and engine names.
 * Examples:
 * <code><pre>
 *     //Track all active engines
 *     new EnginesTracker(context);
 *     
 *     //Track only the langId engine
 *     new EnginesTracker(context,langId);
 * </pre></code>
 * @param context The bundle context used to track engines
 * @param engineNames the name of the engines to track. If empty 
 * all engines are tracked.
 */
public EnginesTracker(BundleContext context, String...engineNames){
  if(context == null){
    throw new IllegalArgumentException("The parsed BundleContext MUST NOT be NULL!");
  }
  final Set<String> names;
  if(engineNames == null){
    names = Collections.emptySet();
  } else {
    names = new HashSet<String>(Arrays.asList(engineNames));
  }
  initEngineTracker(context,names,null);
}
/**
origin: apache/stanbol

protected EnginesTracker(){/* nothing to do here */ }    /**
 * Creates a new {@link EnginesTracker} for the parsed {@link BundleContext}
 * and engine names.
 * Examples:
 * <code><pre>
 *     //Track all active engines
 *     new EnginesTracker(context);
 *     
 *     //Track only the langId engine
 *     new EnginesTracker(context,langId);
 * </pre></code>
 * @param context The bundle context used to track engines
 * @param engineNames the name of the engines to track. If empty 
 * all engines are tracked.
 */
public EnginesTracker(BundleContext context, String...engineNames){
  if(context == null){
    throw new IllegalArgumentException("The parsed BundleContext MUST NOT be NULL!");
  }
  final Set<String> names;
  if(engineNames == null){
    names = Collections.emptySet();
  } else {
    names = new HashSet<String>(Arrays.asList(engineNames));
  }
  initEngineTracker(context,names,null);
}
/**
org.apache.stanbol.enhancer.servicesapi.implEnginesTrackerinitEngineTracker

Javadoc

Initialises the EnginesTracker by using the parsed parameter.

This will create a copy of the parsed engineNames to avoid changes to the internal state due to external changes.

This Method can also be used to re-initialise an existing instance. Any existing ServiceTracker will be closed and the current state will be lost.

Popular methods of EnginesTracker

  • <init>
    Creates a new EnginesTracker for the parsed BundleContextand engine names. Examples: //Track all ac
  • close
    Closes this tracker
  • open
    Starts tracking based on the configuration parsed in the constructor
  • getEngine
  • getActiveEngineNames
  • getReference

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • notifyDataSetChanged (ArrayAdapter)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Collectors (java.util.stream)
  • IsNull (org.hamcrest.core)
    Is the value null?
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