public class ComponentConfigurator<T extends Serializable> extends Object
Constructor and Description |
---|
ComponentConfigurator(Class<T> configClass) |
Modifier and Type | Method and Description |
---|---|
T |
detectConfiguration()
resolve a serializable configuration pojo.
|
T |
detectConfiguration(com.typesafe.config.Config config)
resolve a serializable configuration pojo from a portion of the JVM config object.
|
T |
detectConfiguration(com.typesafe.config.Config typesafe,
String path)
resolve a serializable configuration pojo compiled from a specified path on a provided configuration tree.
|
T |
detectConfiguration(String path)
resolve a serializable configuration pojo from a portion of the JVM config object.
|
static List<Class> |
getSuperClasses(Class clazz)
inspect and return class hierarchy in order from furthest to nearest ancestor.
|
public T detectConfiguration()
public T detectConfiguration(com.typesafe.config.Config typesafe, String path)
public T detectConfiguration(String path)
path
- pathpublic T detectConfiguration(com.typesafe.config.Config config)
config
- configCopyright © 2018 The Apache Software Foundation. All rights reserved.