removeProxy method

IProxy removeProxy(
  1. String proxyName
)
override

Remove an IProxy instance from the IModel.

  • Param proxyName - name of the IProxy instance to be removed.
  • Returns IProxy - the IProxy that was removed from the IModel.

Implementation

IProxy removeProxy(String proxyName) {
  IProxy proxy = proxyMap[proxyName];
  if (proxy != null) {
    proxyMap[proxyName] = null;
    proxy.onRemove();
  }
  return proxy;
}