it probably would be better to have this service hold a reference to this
factory instance or the map reference directly as a member variable, then it
will only need initialize all the mutator once in every VM. Something like:
```
public class LocatorClusterManagementService extends ....{
....
private Map<Class, Mutators> mutators = new HashMap(); // this map can be a
instance variable since the we only have one service instance per cache.
public LocatorClusterManagementService(...){
// initialize the map
}
}
public Class UpdateCacheFunction extends ... {
...
private static Map<Class, Realizers> realizers = new HashMap(); // this needs
to be a static variable, since the we would generate one function instance per
function call.
// some static initializers to initialize the map...
}
```
We should also have some test visible methods to add to these maps in unit
tests.
[ Full content available at: https://github.com/apache/geode/pull/3059 ]
This message was relayed via gitbox.apache.org for
[email protected]