Annotation Interface Factory


@Documented @Target(METHOD) @Retention(RUNTIME) @API(status=STABLE, since="1.0") public @interface Factory
An annotation that, when applied to a method, indicates that the method is a factory for the return type of the annotated method. The method must pass all requirements of a factory method before being registered as one.
Since:
1.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Id of the codec to use when serializing or deserializing factory methods.
  • Field Details

    • CODEC_ID

      static final String CODEC_ID
      Id of the codec to use when serializing or deserializing factory methods.
      See Also: