jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • DisplayTag
  • DISPL-222

Ability to use a custom DecoratorFactory

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.1
  • Component/s: Decorators
  • Labels:
    None

Description

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)

Issue Links

is depended upon by

Wish - General wishlist item DISPL-31 Passing Decorator objects directly into Table, Column

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
fabrizio giustina added a comment - 27/Oct/05 3:53 PM
planning for 1.1
Show
fabrizio giustina added a comment - 27/Oct/05 3:53 PM planning for 1.1
Hide
Permalink
fabrizio giustina added a comment - 27/Oct/05 4:19 PM
will be solved by custom decorator factories
Show
fabrizio giustina added a comment - 27/Oct/05 4:19 PM will be solved by custom decorator factories
Hide
Permalink
fabrizio giustina added a comment - 29/Dec/05 2:56 PM
implemented in 1.1 with a new factory.decorator property
Show
fabrizio giustina added a comment - 29/Dec/05 2:56 PM implemented in 1.1 with a new factory.decorator property

People

  • Reporter:
    Anonymous
Vote (0)
Watch (0)

Dates

  • Created:
    28/Jun/05 9:21 AM
    Updated:
    29/Dec/05 2:56 PM
    Resolved:
    29/Dec/05 2:56 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.