public abstract class BaseManagedTokenFilterFactory extends org.apache.lucene.analysis.util.TokenFilterFactory implements org.apache.lucene.analysis.util.ResourceLoaderAware, ManagedResourceObserver
| Modifier | Constructor and Description |
|---|---|
protected |
BaseManagedTokenFilterFactory(Map<String,String> args) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<? extends ManagedResource> |
getManagedResourceImplClass()
Let the concrete analysis component determine the ManagedResource implementation.
|
protected abstract String |
getResourceId()
Let the concrete analysis component decide the path it wishes to be managed at.
|
void |
inform(org.apache.lucene.analysis.util.ResourceLoader loader)
Registers an endpoint with the RestManager so that this component can be
managed using the REST API.
|
availableTokenFilters, create, forName, lookupClass, reloadTokenFiltersassureMatchVersion, get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitFileNamesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonManagedResourceInitializedprotected String handle
public void inform(org.apache.lucene.analysis.util.ResourceLoader loader)
throws IOException
RestManager needs to initialize
a ManagedResource are available, so this simply registers the need
to be managed at a specific endpoint and lets the RestManager deal with
initialization when ready.inform in interface org.apache.lucene.analysis.util.ResourceLoaderAwareIOExceptionprotected abstract String getResourceId()
protected abstract Class<? extends ManagedResource> getManagedResourceImplClass()
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.