Annotation Interface Prototype.CustomMethods

Enclosing class:
Prototype

@Target(TYPE) @Retention(CLASS) public static @interface Prototype.CustomMethods
Additional methods from this type will be added to the prototype and its builder. All methods must be declared as static.

These methods can be annotated with:

  • Prototype.FactoryMethod - to create a static factory method on prototype
  • Prototype.BuilderMethod - to create an additional method on prototype builder, first parameter is the builder instance, may have additional parameters, must be void
  • Prototype.PrototypeMethod - to be added to the prototype interface, first parameter is the prototype instance, may have additional parameters
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Type that implements static methods to be available on the prototype.
  • Element Details

    • value

      Class<?> value
      Type that implements static methods to be available on the prototype.
      Returns:
      type with static methods annotated with Prototype.FactoryMethod