Modeling Members in Annotation Style
To model a managed object that contains other managed objects, implement a method that returns an array or java.util.Collection of members, and annotate that method as @TeaGetMembers.
Members indicates a containment relationship. Model any other type of relationship using @TeaReference. See also
References Aspect.
Procedure
-
Implement a method to get the members. Annotate it as
@TeaGetMembers.
The method must return either an array or
java.util.Collection of
AgentObjectIdentifier instances.
@TeaGetMembers AgentObjectIdentifier[] getMembers(@KeyParam final String key) { ... }
@TeaGetMembers Collection<AgentObjectIdentifier> getMembers(@KeyParam final String key) { ... }
com.tibco.tea.agent.types.AgentObjectIdentifier is a standard format for virtual objects within agents.
Copyright © Cloud Software Group, Inc. All rights reserved.