Annotation Type ContextSoftLink


@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface ContextSoftLink
Annotation to document and create softlink between entities. Either in the current component, or between components.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Use this attribute in combination with entityName() to create a soft-link to an entity in another component.
    Use this attribute to create a soft-link to an entity in the current component.
    Use this attribute in combination with component() to create a soft-link to an entity in another component.
  • Element Details

    • entity

      Class entity
      Use this attribute to create a soft-link to an entity in the current component.
      Returns:
      linked entity in current component
      Default:
      void.class
    • entityName

      String entityName
      Use this attribute in combination with component() to create a soft-link to an entity in another component. The simple name of the entity's class should be used.
      Returns:
      name of the linked entity to other component
      Default:
      ""
    • component

      String component
      Use this attribute in combination with entityName() to create a soft-link to an entity in another component.
      Returns:
      name of the other component
      Default:
      ""