public class DefaultModuleOptionsMetadataResolver extends java.lang.Object implements ModuleOptionsMetadataResolver, org.springframework.context.EnvironmentAware, org.springframework.context.ResourceLoaderAware
ModuleOptionsMetadataResolver
that deals with simple modules and reads the
companion .properties
file sitting next to the module definition.
The following strategies will be applied in turn:
<modulename>.properties
next to the module xml definition filePojoModuleOptionsMetadata
backed by that POJO classnameSimpleModuleOptionsMetadata
backed by keys of the form options.<name>.description
.
Additionaly, one can provide options.<name>.default
and options.<name>.type
properties.DefaultModuleOptionsMetadata
.
Constructor and Description |
---|
DefaultModuleOptionsMetadataResolver() |
Modifier and Type | Method and Description |
---|---|
ModuleOptionsMetadata |
resolve(ModuleDefinition definition)
Return metadata about a module, as identified by the given moduleDefinition.
|
void |
setEnvironment(org.springframework.core.env.Environment environment) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
public DefaultModuleOptionsMetadataResolver()
public ModuleOptionsMetadata resolve(ModuleDefinition definition)
ModuleOptionsMetadataResolver
resolve
in interface ModuleOptionsMetadataResolver
public void setEnvironment(org.springframework.core.env.Environment environment)
setEnvironment
in interface org.springframework.context.EnvironmentAware
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware