org.omnaest.utils.structure.element.converter
Annotation Type Converter
@Documented
@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Converter
An Converter allows to declare a Class of an ElementConverter which should be used to translate a
return value or a single given parameter before storing it in the underlying structure.
The instance of the ElementConverter must have a default constructor.
If multiple ElementConverter types are specified they are chained in ascending index order (left to right). Please
ensure that the output of any left handed ElementConverter can be used as input for any following
ElementConverter. If any Exception occurs it is catched and null is returned.
- Author:
- Omnaest
- See Also:
ElementConverter
types
public abstract Class<? extends ElementConverter>[] types
- Returns:
- See Also:
Converter
Copyright © 2013. All Rights Reserved.