Annotation Interface Mediator


@Documented @Target(TYPE) @Retention(RUNTIME) public @interface Mediator
Types that are annotated with this annotation are considered to be mediators
between two or more types. They are used to facilitate communication.
The mediator handles a many-to-many relationship between those types.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    @NotNull Class<?>[]
    Returns the types that are mediated by this class.
  • Element Details

    • value

      @NotNull @NotNull Class<?>[] value
      Returns the types that are mediated by this class.
      Returns:
      The types
      Default:
      {}