Annotation Interface DciRole


@Target(TYPE) @Documented @Retention(RUNTIME) public @interface DciRole
Designates a DCI role implementation for a given owner object.
Author:
Fabrizio Giudici
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<?>[]
    The datum type to which this role can be associated.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The context type to which this role is restricted.
  • Element Details

    • datumType

      @Nonnull Class<?>[] datumType
      The datum type to which this role can be associated. Multiple data types can be specified.
      Returns:
      the datum type
    • context

      Class<?> context
      The context type to which this role is restricted. If no context is specified, this role will always be associated.
      Returns:
      the context type
      Default:
      it.tidalwave.dci.annotation.DciRole.NoContext.class