Class AbstractConf
- java.lang.Object
-
- io.streamthoughts.azkarra.api.config.AbstractConf
-
- All Implemented Interfaces:
Conf
- Direct Known Subclasses:
AzkarraConf
,MapConf
public abstract class AbstractConf extends Object implements Conf
-
-
Constructor Summary
Constructors Constructor Description AbstractConf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
getClass(String key, Class<T> cls)
Gets a required parameter as an instances of typeConf
.<T> Collection<T>
getClasses(String key, Class<T> cls)
Gets a required parameter as a list of instances of typeConf
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.streamthoughts.azkarra.api.config.Conf
getBoolean, getConfAsMap, getConfAsProperties, getDouble, getInt, getLong, getOptionalBoolean, getOptionalDouble, getOptionalInt, getOptionalLong, getOptionalString, getString, getStringList, getSubConf, getSubConfList, hasPath, withFallback
-
-
-
-
Method Detail
-
getClasses
public <T> Collection<T> getClasses(String key, Class<T> cls)
Gets a required parameter as a list of instances of typeConf
.- Specified by:
getClasses
in interfaceConf
- Type Parameters:
T
- the expected type.- Parameters:
key
- the parameter path.cls
- the class of the .- Returns:
- a new
Collection
ofConf
.
-
-