org.fuchss.configuration.annotations.SetParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configuration-parser Show documentation
Show all versions of configuration-parser Show documentation
This small project realizes a tool to set the attributes of classes and objects.
The newest version!
package org.fuchss.configuration.annotations;
import org.fuchss.configuration.Configurable;
import org.fuchss.configuration.parser.Parser;
import java.lang.annotation.*;
/**
* This annotation has to be applied to Fields of a {@link Configurable} which
* shall be set by a specified {@link Parser}. This will override the default
* and the {@link ClassParser}
*
* @author Dominik Fuchss
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
public @interface SetParser {
/**
* Get the parser-type.
*
* @return the parser type
*/
Class extends Parser> value();
}