Annotation Type Encoding


  • @Target(TYPE)
    @Retention(SOURCE)
    public @interface Encoding
    Encoding defines set of template methods and fields which describes how attributes of specific types are implemented in generated value class. Encoding annotation is processed by the annotation processor (the same as used for value objects) and generates annotation named *Enabled in the same package, inserting encoding simple class name in placeholder. Encoding class consists of special fields methods, builder inner static class with it's own fields and methods.

    When programming the encoding class, remember that code analyser is not akin full-fledged java compiler, but a set of simplified routines which cannot possibly