thinkmap.context
Interface IContextListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
DatabaseDataSource, DataSourceIndex, EventMulticaster, RemoteDataSource

public interface IContextListener
extends EventListener

This interface should be implemented by objects that want to know about when an IThinkmapContext is starting and stopping. * @author tinkler


Method Summary
 void contextDestroyed(IThinkmapContext itc)
          Called when the given context has been destroyed.
 void contextInitializing(IThinkmapContext itc)
          Called when the given context is initializing.
 void contextStarting(IThinkmapContext itc)
          Called when the given context is starting.
 void contextStopping(IThinkmapContext itc)
          Called when the given context is stopping.
 

Method Detail

contextInitializing

void contextInitializing(IThinkmapContext itc)
                         throws Exception
Called when the given context is initializing. Listeners should construct and configure objects that depend on the context at this time. This method will only be called once per context.

Parameters:
itc - the context that is initializing
Throws:
Exception - if an error occurs while processing this event.

contextStarting

void contextStarting(IThinkmapContext itc)
Called when the given context is starting. All objects that depend on the context should have been initialized before this method is called. Listeners should start any services they offer at this time. A context may be started, stopped, and started again many times.

Parameters:
itc - the context that is starting

contextStopping

void contextStopping(IThinkmapContext itc)
Called when the given context is stopping. Listeners should stop any services they offer at this time.

Parameters:
itc - the context that is starting

contextDestroyed

void contextDestroyed(IThinkmapContext itc)
Called when the given context has been destroyed. Listeners should dispose and de-register objects that depend on the context at this time. This method will only be called once per context.

Parameters:
itc - the context that is being destroyed


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.