org.apache.velocity.util
Interface ContextAware


public interface ContextAware

Event handlers implementing this interface will automatically have the method setContext called before each event. This allows the event handler to use information in the latest context when responding to the event.

Important Note: Only local event handlers attached to the context (as opposed to global event handlers initialized in the velocity.properties file) should implement ContextAware. Since global event handlers are singletons individual requests will not be able to count on the correct context being loaded before a request.

Version:
$Id: ContextAware.java 463298 2006-10-12 16:10:32Z henning $
Author:
Will Glass-Husain

Method Summary
 void setContext(Context context)
          Initialize the EventHandler.
 

Method Detail

setContext

void setContext(Context context)
Initialize the EventHandler.

Parameters:
context -


Copyright © 2000-2007 The Apache Software Foundation. All Rights Reserved.