It's all about the answers!

Ask a question

Custom Governor-Policy instances


James Thario (1153) | asked Feb 23 '11, 6:02 p.m.
Hi,

In the RAM documentation for policies there is a governor that constructs its policies in advance and keeps them in a Map (i.e. singleton).

A few questions about this:

1. Is the governor also a singleton for the entire repository?
2. Should we avoid using read/write instance attributes in a policy in case invocations from different lifecycles overlap?
3. Are invocations of the test() method externally synchronized? test() isn't marked as synchronized in the base class.
4. Would it be a better (safer) practice for the governor to create a new instance every time getPolicy() is called?

Thanks in advance for your insight!

One answer



permanent link
Rich Kulp (3.6k38) | answered Feb 24 '11, 4:53 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi,

Governors are not saved. Each time a governor or a policy is required a
new governor instance is created.

--
Rich Kulp
Rational Asset Manager developer

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.