Ability to use a custom DecoratorFactory
----------------------------------------

         Key: DISPL-222
         URL: http://jira.codehaus.org/browse/DISPL-222
     Project: DisplayTag
        Type: Improvement
  Components: Decorators  
    Versions: 1.0    
    Reporter: 


Currently, the DecoratorFactory is a utility class that has 2 static methods. 
It would be nice if it was a user specifiable implementation of a simple 
interface with those two methods. (You could store it in the servlet context to 
avoid having to reinstanciating it everytime).

Doing this would allow to have (for instance) a DecoratorFactory that retrieves 
decorators from an ioc container, allowing them to enjoy the power of 
dependency injection. (One could also have a caching implementation, which 
would for instance keep an instance of each decorator per thread (using a 
ThreadLocal), avoiding many reinstanciations of the decorator)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to