You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Byron Foster (JIRA)" <de...@velocity.apache.org> on 2009/02/10 11:55:07 UTC

[jira] Created: (VELOCITY-691) Change context event handling for better efficiency.

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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[jira] Closed: (VELOCITY-691) Change context event handling for better efficiency.

Posted by "Byron Foster (JIRA)" <de...@velocity.apache.org>.
     [ https://issues.apache.org/jira/browse/VELOCITY-691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Byron Foster closed VELOCITY-691.
---------------------------------

    Resolution: Won't Fix

Hmm, looking at this more, There is more change I'd like to do, then I'm prepared to do :) save for later.

> 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org