Model constructor

Model(
  1. String key
)

Constructor.

This IModel implementation is a Multiton, so you should not call the constructor directly, but instead call the static getInstance method.

Implementation

Model(String key) {
  if (instanceMap[key] != null) throw new MultitonErrorModelExists();
  multitonKey = key;
  instanceMap[multitonKey] = this;
  proxyMap = new Map<String, IProxy>();
  initializeModel();
}