Class ApplicationConfig
- java.lang.Object
-
- io.streamthoughts.azkarra.streams.context.internal.ApplicationConfig
-
public class ApplicationConfig extends Object
Class which is used to initially configure aAzkarraContext
instance.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ApplicationConfig.Reader
-
Field Summary
Fields Modifier and Type Field Description static String
CONTEXT_COMPONENT_CONFIG
static String
CONTEXT_CONFIG
static String
CONTEXT_ENVIRONMENTS_CONFIG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
components()
Gets all registered components class name.Conf
context()
Gets the context configuration.List<EnvironmentConfig>
environments()
Gets all registered environments.static ApplicationConfig
read(Conf conf)
Static helper that can be used to creates a newApplicationConfig
instance from the providedConf
.
-
-
-
Field Detail
-
CONTEXT_CONFIG
public static final String CONTEXT_CONFIG
- See Also:
- Constant Field Values
-
CONTEXT_COMPONENT_CONFIG
public static final String CONTEXT_COMPONENT_CONFIG
- See Also:
- Constant Field Values
-
CONTEXT_ENVIRONMENTS_CONFIG
public static final String CONTEXT_ENVIRONMENTS_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
read
public static ApplicationConfig read(Conf conf)
Static helper that can be used to creates a newApplicationConfig
instance from the providedConf
.- Returns:
- a new
ApplicationConfig
instance.
-
components
public Set<String> components()
Gets all registered components class name.- Returns:
- a set of string class name.
-
environments
public List<EnvironmentConfig> environments()
Gets all registered environments.- Returns:
- a list of
EnvironmentConfig
instances.
-
-