Support for POJOs
TeaOperation supports Plain Old Java Object (POJO) as parameters and return types.
To enable POJO support, set the following system property to
true
before starting the agent:
tea.agent.schemageneration.pojo=trueThe property is by default set to false, so ensure that you set this to true if you want the Python scripts to support POJO objects. POJO support comes with some supported scenarios and limitations.
Supported Scenarios
The following java objects are supported as a parameter or a return type:
- A POJO
- Array of POJO
- List of POJOs
- Map of POJOs
- Nested POJOs
- A list of POJOs passed as a parameter to a Map is supported as a return type.
- If you have classes with same names in different packages, underscore separated fully qualified names are used to distinguish them. For example, if there is a class by the name, TeaAgent in com.tibco.tea.agentA, and com.tibco.tea.agent.agentB, the class in package agentA is identified by using com_tibco_tea_agent_agentA_TeaAgent and the class in agentB is identified by using com_tibco_tea_agent_agentB_TeaAgent.
Copyright © Cloud Software Group, Inc. All Rights Reserved.