com.tibco.tea.agent.annotations

## Annotation Type TeaReference

-     @Retention(value=RUNTIME)
       @Target(value=METHOD)
      public @interface TeaReference

  This is on method that provides referenced object.

  The method takes as an argument a key (or no arguments for top-level object) and returns `AgentObjectIdentifier` or its subclasses, or `BaseTeaObject` or its subclasses, OR a `Collection` or an array of those.

- - ### Required Element Summary

    Required Elements
    Modifier and Type | Required Element and Description
    --- | ---
    `String` | `name` Name of the reference.

  - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `String` | `objectType` Name of the type to which this reference belongs to (source of the reference).
    `String` | `referenceType` Type of the reference, optional when the type can be derived from the return value of the method.

- - ### Element Detail

    - #### name

          public abstract String name

      Name of the reference.

  - - #### referenceType

          public abstract String referenceType

      Type of the reference, optional when the type can be derived from the return value of the method. Mandatory when return value is `AgentObjectIdentifier`.
      Default:
        ""

  - - #### objectType

          public abstract String objectType

      Name of the type to which this reference belongs to (source of the reference). Mandatory when class defining the method define many TEA types.
      Default:
        ""

Copyright © 2022 TIBCO Software Inc.. All Rights Reserved.