Hello,

I would like to suggest that we use java annotations
for the classes which implement an AE.

The configuration parameters can be defined via java annotations
and then injected into the AE before initializing.
The implementor than does not need to write code that retrieves
configuration parameters. The framework than can also guarantee
that all mandatory parameters are set (currently its not possible to enforce that
the implementation is in sync with the configurationParameters section
in the descriptor.

Here a small sample:

public class SampleAE extends Annotator_ImplBase {
  @Parameter(mandatory = true)
  public Boolean booleanParameter; // <- value is injected
}

What do you think ?

Jörn

Reply via email to