public class PojoModuleOptionsMetadata extends java.lang.Object implements ModuleOptionsMetadata
ModuleOptionsMetadata
that derives its information from a plain old java object:
ModuleOptions
for such a POJO will work as follows:
ProfileNamesProvider
, profile names will be gathered from a reflective call to
ProfileNamesProvider.profilesToActivate()
Constructor and Description |
---|
PojoModuleOptionsMetadata(java.lang.Class<?> clazz) |
PojoModuleOptionsMetadata(java.lang.Class<?> clazz,
org.springframework.core.convert.ConversionService conversionService) |
Modifier and Type | Method and Description |
---|---|
ModuleOptions |
interpolate(java.util.Map<java.lang.String,java.lang.String> raw)
Derive information about the module behavior once it is part of a stream and user provided values for the module
options are known.
|
java.util.Iterator<ModuleOption> |
iterator() |
java.lang.String |
toString() |
public PojoModuleOptionsMetadata(java.lang.Class<?> clazz)
public PojoModuleOptionsMetadata(java.lang.Class<?> clazz, org.springframework.core.convert.ConversionService conversionService)
public java.util.Iterator<ModuleOption> iterator()
iterator
in interface java.lang.Iterable<ModuleOption>
public ModuleOptions interpolate(java.util.Map<java.lang.String,java.lang.String> raw) throws org.springframework.validation.BindException
ModuleOptionsMetadata
interpolate
in interface ModuleOptionsMetadata
raw
- the user provided options (from the DSL stream definition)org.springframework.validation.BindException
- if provided values (as well as defaults) failed to validatepublic java.lang.String toString()
toString
in class java.lang.Object