Add annotation to javafx custom control
<p>I want to create a custom button using Javafx 8 that i can initialize using an annotation.
But on the initialization of the button, only the FXML annotation appeared.
How can I create the custom button with the annotation? </p>

<p>Annotation:</p>

<pre><code>@Retention( RetentionPolicy.RUNTIME )
@Target(ElementType.FIELD)
public @interface Anno {

String someAction();

String someValue();
}
</code></pre>

<p>Class constructor:</p>

<pre><code>    public CustomButton() {
    super();
    if (this.getClass().isAnnotationPresent(Anno.class)) {
        Anno anno = this.getClass().getAnnotation(Anno.class);
        setAction(anno.someAction());
        setValue(anno.someValue());
    }
    initialize();
}
</code></pre>

<p>Calling the custom button:</p>

<pre><code>@FXML
@Anno(someAction = "someAction", someValue = "Hello")
private CustomButton button;
</code></pre>

<p>Is there a way to so?</p>