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,
Element properties,
T defaultValue)
Use this to build a single class, where the user specifies the instance class, 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 <T> T buildSingle(String itemName, Class<T> itemClass, Element properties, T defaultValue) throws TikaConfigException, IOException
itemName
- properties
- -- the properties element in the configTikaConfigException
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–2022 The Apache Software Foundation. All rights reserved.