Codota Logo
org.apache.stanbol.enhancer.servicesapi.impl
Code IndexAdd Codota to your IDE (free)

How to use org.apache.stanbol.enhancer.servicesapi.impl

Best Java code snippets using org.apache.stanbol.enhancer.servicesapi.impl (Showing top 20 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.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

@Override
public Chain getDefault() {
  Chain chain = getChain(DEFAULT_CHAIN_NAME);
  if(chain == null){
    chain = (Chain)nameTracker.getService();
  }
  return chain;
}
/**
origin: org.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

@Override
public Chain getChain(String name){
  ServiceReference ref = getReference(name);
  return ref == null ? null : (Chain)nameTracker.getService(ref);
}
/*
origin: org.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

@Override
public EnhancementEngine getEngine(String name){
  ServiceReference ref = getReference(name);
  return ref == null ? null : (EnhancementEngine)nameTracker.getService(ref);
}
/*
origin: org.apache.stanbol/org.apache.stanbol.enhancer.engines.htmlextractor

/**
 * The deactivate method.
 *
 * @param ce the {@link ComponentContext}
 */
protected void deactivate(ComponentContext ce) {
  super.deactivate(ce);
  this.htmlParser = null;
  this.htmlExtractorRegistry = null;
}
origin: apache/stanbol

@Override
protected void deactivate(ComponentContext ctx) {
  tracker.close();
  tracker = null;
  chainScopedEnhProps = null;
  chain = null;
  super.deactivate(ctx);
}
@Override
origin: apache/stanbol

/**
 * Internally used to create {@link ContentSource} instanced for the
 * MimeType parsing tests
 */
private static ContentSource createContentSource(String mimeType){
  return new ByteArraySource(content, mimeType);
}

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

/**
 * Getter for the map with the names and the {@link ServiceReference} of the 
 * engine with the highest priority for that name.
 * @return the map with the names and {@link ServiceReference}s of all
 * currently active and tracked engines
 */
public Map<String,ServiceReference> getActiveEngineReferences(){
  return nameTracker.getActive();
}
/*
origin: apache/stanbol

/**
 * Closes this tracker
 */
public void close(){
  nameTracker.close();
  nameTracker = null;
}
/**
origin: org.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

@Override
public Set<String> getActiveChainNames(){
  return nameTracker.getNames();
}
/**
origin: org.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

/**
 * Starts tracking based on the configuration parsed in the constructor
 */
public void open(){
  nameTracker.open();
}
/**
origin: apache/stanbol

protected void deactivate(ComponentContext ce) {
  super.deactivate(ce);
  this.languageIdentifier = null;
  this.maxSuggestedLanguages = -1;
  this.probeLength = -1;
}
origin: apache/stanbol

@Override
public Chain getDefault() {
  Chain chain = getChain(DEFAULT_CHAIN_NAME);
  if(chain == null){
    chain = (Chain)nameTracker.getService();
  }
  return chain;
}
/**
origin: apache/stanbol

@Override
public Chain getChain(String name){
  ServiceReference ref = getReference(name);
  return ref == null ? null : (Chain)nameTracker.getService(ref);
}
/*
origin: apache/stanbol

@Override
public EnhancementEngine getEngine(String name){
  ServiceReference ref = getReference(name);
  return ref == null ? null : (EnhancementEngine)nameTracker.getService(ref);
}
/*
origin: apache/stanbol

/**
 * Getter for the map with the names and the {@link ServiceReference} of the 
 * engine with the highest priority for that name.
 * @return the map with the names and {@link ServiceReference}s of all
 * currently active and tracked engines
 */
public Map<String,ServiceReference> getActiveEngineReferences(){
  return nameTracker.getActive();
}
/*
origin: org.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

/**
 * Closes this tracker
 */
public void close(){
  nameTracker.close();
  nameTracker = null;
}
/**
origin: org.apache.stanbol/org.apache.stanbol.enhancer.servicesapi

@Override
public Set<String> getActiveEngineNames(){
  return nameTracker.getNames();
}
/**
origin: apache/stanbol

@Override
protected void deactivate(ComponentContext ctx) throws RuntimeException {
  this.config = null;
  this.parser = null;
  this.detector = null;
  this.skipLinebreaks = DEFAULT_SKIP_LINEBREAKS;
  this.ontologyMappings = null;
  super.deactivate(ctx);
}
private static boolean getBoolean(Dictionary<?,?> properties, String key, boolean defaultState){
origin: apache/stanbol

/**
 * Getter for the map with the names and the {@link ServiceReference} of the 
 * chain with the highest priority for that name.
 * @return the map with the names and {@link ServiceReference}s of all
 * currently active and tracked chains
 */
public Map<String,ServiceReference> getActiveChainReferences(){
  return nameTracker.getActive();
}
/*
origin: apache/stanbol

/**
 * Closes this tracker
 */
public void close(){
  nameTracker.close();
  nameTracker = null;
}
/**
org.apache.stanbol.enhancer.servicesapi.impl

Most used classes

  • AbstractEnhancementEngine
    Abstract base implementation that reads the of the EnhancementEngine#PROPERTY_NAME from configuratio
  • EnginesTracker
    Utility similar to ServiceTracker that allows to track one/some/all EnhancementEngines. As convenien
  • StringSource
    Allows to use a String as a Source for Content.
  • AbstractChain
    Abstract base implementation that reads the of the Chain#PROPERTY_NAME from configuration parsed in
  • StreamSource
    Allows to use a InputStream as ContentSource. This is the most common case, that all the contents pa
  • ChainsTracker,
  • AbstractContentItemFactory$LazyDereferencingBlob,
  • AbstractContentItemFactory,
  • ContentItemImpl,
  • NameBasedServiceTrackingState,
  • SingleEngineChain,
  • StreamSource$NonCloseableInputStream
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