/** * Unregister an object from the context manager. * * @param object Object to unregister. */ @Override public void unregisterObject(Object object) { if (object instanceof IContextEvent) { for (IManagedContext<?> managedContext : managedContexts) { managedContext.removeSubscriber((IContextEvent) object); } } if (object instanceof IManagedContext) { managedContexts.remove(object); } }
/** * Unregister an object from the context manager. * * @param object Object to unregister. */ @Override public void unregisterObject(Object object) { if (object instanceof IContextEvent) { for (IManagedContext managedContext : managedContexts) { managedContext.removeSubscriber(object); } } if (object instanceof IManagedContext) { managedContexts.remove(object); } }