On 01/28/10 13:21, John Mazzitelli wrote:
> Mazz, The factory method returns a new TemplateEngine populated
with
> values that are read out of the SystemInfo object.
>
My concern here is that, what if SIGAR is disabled and that
createSystemInfo returns an implementation of JavaSystemInfo - some of
the getters from that implementation will throw a
UnsupportedOperationException.
If your code takes that into account when calling the SystemInfo
getters, then it sounds OK.
BTW: you can test this by doing a "native -d" from the agent prompt
command and get your code to call that getTemplateEngine API. Make sure
that returns OK in that use-case.
_______________________________________________
rhq-users mailing list
rhq-users(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/rhq-users
I think in that case I will catch the exception, return a template
engine without all the values populated, and the string will go un replaced.