public abstract class ConfigBase extends Object
Constructor and Description |
---|
ConfigBase() |
Modifier and Type | Method and Description |
---|---|
protected static <P,T> P |
buildComposite(String compositeElementName,
Class<P> compositeClass,
String itemName,
Class<T> itemClass,
Element properties) |
protected static <P,T> P |
buildComposite(String compositeElementName,
Class<P> compositeClass,
String itemName,
Class<T> itemClass,
InputStream is)
Use this to build a list of components for a composite item (e.g.
|
protected static <T> T |
buildSingle(String itemName,
Class<T> itemClass,
InputStream is)
Use this to build a single class, where the user specifies the instance class, e.g.
|
protected Set<String> |
configure(String nodeName,
InputStream is)
Use this to configure a subclass of ConfigBase, a single known object.
|
protected void |
handleSettings(Set<String> settings)
This should be overridden to do something with the settings
after loading the object.
|
protected static <T> T buildSingle(String itemName, Class<T> itemClass, InputStream is) throws TikaConfigException, IOException
itemName
- is
- TikaConfigException
IOException
protected static <P,T> P buildComposite(String compositeElementName, Class<P> compositeClass, String itemName, Class<T> itemClass, InputStream is) throws TikaConfigException, IOException
compositeElementName
- itemName
- is
- TikaConfigException
IOException
protected static <P,T> P buildComposite(String compositeElementName, Class<P> compositeClass, String itemName, Class<T> itemClass, Element properties) throws TikaConfigException, IOException
TikaConfigException
IOException
protected void handleSettings(Set<String> settings)
settings
- protected Set<String> configure(String nodeName, InputStream is) throws TikaConfigException, IOException
nodeName
- is
- TikaConfigException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.