[
https://issues.apache.org/jira/browse/TORQUE-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13067047#comment-13067047
]
Thomas Fox commented on TORQUE-166:
-----------------------------------
What about generating a getOMInstance method in the Peer returning a new
OMClass() ?
In my opinion we should avoid using reflection wherever possible. Also,
getOMInstance() is more flexible, one can override the method and instantiate
classes which do not have a no-arg constructor.
When needed, one can still find out the OMClass by getOMInstance().getClass()
> remove the getOMClass() method, the CLASS_DEFAULT constant and the
> initClass() method in the generated peers
> ------------------------------------------------------------------------------------------------------------
>
> Key: TORQUE-166
> URL: https://issues.apache.org/jira/browse/TORQUE-166
> Project: Torque
> Issue Type: Improvement
> Reporter: Thomas Fox
> Assignee: Thomas Fox
>
> These methods and constants were used by village and are not needed any more.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]