Annotation Interface Implementation


@Target(TYPE) public @interface Implementation
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If set to true, this will act as the implementation for all interfaces declared, as opposed to the default behavior of having to explicitly declare which to implement when there are multiple.
    If this is not empty, this implementation will only be injectable if the given dependencies are present.
    Controls which environment the implementation is allowed to be used in.
     
     
  • Element Details

    • value

      String[] value
      Default:
      {""}
    • name

      String name
      Default:
      ""
    • allInterfaces

      boolean allInterfaces
      If set to true, this will act as the implementation for all interfaces declared, as opposed to the default behavior of having to explicitly declare which to implement when there are multiple.
      Default:
      false
    • environment

      String environment
      Controls which environment the implementation is allowed to be used in. If a loader-specific annotation is present, that will be used. Leave blank for this implementation to be used in all environments.

      Valid values are CLIENT and SERVER.

      Default:
      ""
    • dependencyModIds

      String[] dependencyModIds
      If this is not empty, this implementation will only be injectable if the given dependencies are present.
      Default:
      {}