Change context event handling for better efficiency.
----------------------------------------------------

                 Key: VELOCITY-691
                 URL: https://issues.apache.org/jira/browse/VELOCITY-691
             Project: Velocity
          Issue Type: Improvement
          Components: Engine
    Affects Versions: 2.0
            Reporter: Byron Foster


Change Context Event handling API so that The Context EventCartridge is 
initialized with the global EvenCartridge.  Then during rendering only the 
Context EventCartridge needs to be checked instead of potentially two.  
Additionally, add addEventHandler method to the Velocity context to simply add 
an EventHandler to the existing EventCartridge.  Doing this would also 
initialize  the handler.  VelocityContext.setEventCartridge will replace the 
existing EventCartrige which means that global event handlers will also be 
replaced.

This change provides much faster event handling processing, and provides 
greater flexibility at the context level of controlling event handling.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to