Annotation Type DciRole


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

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

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<?> context
      The context type to which this role is restricted.
    • Element Detail

      • datumType

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

        java.lang.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