@Documented @Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) public @interface ConfigParam
ContentHandler
parameters
from its SmooksResourceConfiguration
instance. To inject the whole
SmooksResourceConfiguration
instance, use the @org.milyn.cdr.annotation.Config
annotation.
@ConfigParam(decoder=IntegerDecoder
.class)
private int maxDigits;
Where the parameter name is NOT the same as the field name:
@ConfigParam(name="max-digits", decoder=IntegerDecoder
.class)
private int maxDigits;
Configurator
Modifier and Type | Optional Element and Description |
---|---|
String[] |
choice
Paramater choice values.
|
Class<? extends DataDecoder> |
decoder
The
DataDecoder class to use when decoding the paramater value. |
String |
defaultVal
The default paramater value.
|
String |
name
The paramater name as defined in the resource configuration.
|
ConfigParam.Use |
use
Paramater required or optional.
|
public abstract String name
public abstract ConfigParam.Use use
public abstract String defaultVal
public abstract String[] choice
public abstract Class<? extends DataDecoder> decoder
DataDecoder
class to use when decoding the paramater value.DataDecoder
class.Copyright © 2020. All rights reserved.