public final class ConfigModelManager extends Object
Modifier and Type | Method and Description |
---|---|
static Collection<ConfigModel> |
findModels(ModelType type,
String namePattern)
Find the validations by checking the validation's name using the given regular expression.
|
static Collection<ConfigModel> |
findModels(String namePattern)
Find the validations by checking the validation's name using the given regular expression.
|
static <T extends ConfigModel> |
getModel(String name,
Class<T> modelType)
Find the validations by matching the validation's name against the given model type.
|
static Collection<ConfigModel> |
getModels()
Get the validations defined.
|
static void |
registerMBean()
Registers the
ConfigDocumentationMBean mbean for accessing config documentation into the local platform
mbean server. |
static void |
registerMBean(String context)
Registers the
ConfigDocumentationMBean mbean for accessing config documentation into the local platform
mbean server. |
static Collection<ValidationResult> |
validate()
Validates the current configuration.
|
static Collection<ValidationResult> |
validate(boolean showUndefined)
Validates the current configuration.
|
static Collection<ValidationResult> |
validate(org.apache.tamaya.Configuration config)
Validates the given configuration.
|
static Collection<ValidationResult> |
validate(org.apache.tamaya.Configuration config,
boolean showUndefined)
Validates the given configuration.
|
public static Collection<ConfigModel> getModels()
public static Collection<ConfigModel> findModels(ModelType type, String namePattern)
type
- the target ModelType, not null.namePattern
- the regular expression to use, not null.public static <T extends ConfigModel> T getModel(String name, Class<T> modelType)
T
- type of the model to filter for.name
- the name to use, not null.modelType
- classname of the target model type.public static Collection<ConfigModel> findModels(String namePattern)
namePattern
- the regular expression to use, not null.public static Collection<ValidationResult> validate()
public static Collection<ValidationResult> validate(boolean showUndefined)
showUndefined
- show any unknown parameters.public static Collection<ValidationResult> validate(org.apache.tamaya.Configuration config)
config
- the configuration to be validated against, not null.public static Collection<ValidationResult> validate(org.apache.tamaya.Configuration config, boolean showUndefined)
config
- the configuration to be validated against, not null.showUndefined
- allows filtering for undefined configuration elements.public static void registerMBean()
ConfigDocumentationMBean
mbean for accessing config documentation into the local platform
mbean server.public static void registerMBean(String context)
ConfigDocumentationMBean
mbean for accessing config documentation into the local platform
mbean server.context
- allows to specify an additional MBean context, maybe null
.Copyright © 2014–2016 Apache Software Foundation. All rights reserved.