/** * Inform any listeners of a new context being created * * @param context the just-created subcontext */ void contextCreated(AbstractContext context) { if (contextListeners == null) { return; } for (Object contextListener : contextListeners) { ContextListener listener = (ContextListener)contextListener; listener.contextCreated(context); } }
/** * Inform any listeners of a context being removed * * @param context the just-created subcontext */ void contextRemoved(AbstractContext context) { if (contextListeners == null) { return; } for (Object contextListener : contextListeners) { ContextListener listener = (ContextListener)contextListener; listener.contextRemoved(context); } }
/** * Inform any listeners of a context being removed * * @param context the just-created subcontext */ void contextRemoved(AbstractContext context) { if (contextListeners == null) { return; } for (Object contextListener : contextListeners) { ContextListener listener = (ContextListener)contextListener; listener.contextRemoved(context); } }
/** * Inform any listeners of a new context being created * * @param context the just-created subcontext */ void contextCreated(AbstractContext context) { if (contextListeners == null) { return; } for (Object contextListener : contextListeners) { ContextListener listener = (ContextListener)contextListener; listener.contextCreated(context); } }