Stripes

Eliminate UrlBindingFactory.getInstance()

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: Release 1.5
  • Fix Version/s: Release 1.6
  • Component/s: ActionBean Dispatching
  • Labels:
    None

Description

UrlBindingFactory has a public static getInstance() method to get a reference to a singleton instance. This should be eliminated. Instead, the ActionResolver should create its own private instance.

Activity

Hide
Ben Gunter added a comment - 28/Feb/09 4:47 PM

AnnotatedClassActionResolver now creates its own private UrlBindingFactory instance. Other classes that were using UrlBindingFactory.getInstance() now get it from the ActionResolver. If the ActionResolver they get from Configuration is not a subclass of AnnotatedClassActionResolver, then they do not attempt to use UrlBindingFactory at all.

Show
Ben Gunter added a comment - 28/Feb/09 4:47 PM AnnotatedClassActionResolver now creates its own private UrlBindingFactory instance. Other classes that were using UrlBindingFactory.getInstance() now get it from the ActionResolver. If the ActionResolver they get from Configuration is not a subclass of AnnotatedClassActionResolver, then they do not attempt to use UrlBindingFactory at all.
Hide
Ben Gunter added a comment - 02/Mar/09 7:17 PM

We've decided that 1.5.1 will be bug fixes only so I'm removing this from 1.5.1. The commits that have been made for this issue to the 1.5.x branch will be rolled back. Look for this enhancement in 1.6.

Show
Ben Gunter added a comment - 02/Mar/09 7:17 PM We've decided that 1.5.1 will be bug fixes only so I'm removing this from 1.5.1. The commits that have been made for this issue to the 1.5.x branch will be rolled back. Look for this enhancement in 1.6.
Hide
Andrew Jaquith added a comment - 16/May/09 9:28 AM

Ben: I've been watching the changes in SVN for this. I have a keen interest in understanding how this will work. For example, see the attached FileBasedActionResolver, which externalizes the UrlBinding definitions. It's rough and unpolished, but you get the idea.

It looks like UrlBindingFactory.getInstance() could simply be changed to AnnotatedClassActionResolver.getUrlBindingFactory() in 1.6.

Show
Andrew Jaquith added a comment - 16/May/09 9:28 AM Ben: I've been watching the changes in SVN for this. I have a keen interest in understanding how this will work. For example, see the attached FileBasedActionResolver, which externalizes the UrlBinding definitions. It's rough and unpolished, but you get the idea. It looks like UrlBindingFactory.getInstance() could simply be changed to AnnotatedClassActionResolver.getUrlBindingFactory() in 1.6.

People

Vote (0)
Watch (0)

Dates

  • Created:
    28/Feb/09 4:00 PM
    Updated:
    04/Jan/11 2:38 PM
    Resolved:
    28/Feb/09 4:47 PM