Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: Release 1.5.1
-
Fix Version/s: Release 1.5.1, Release 1.6
-
Component/s: ActionBean Dispatching
-
Labels:None
-
Environment:All
Description
I'd like to propose creation of a public method in UrlBindingFactory that would allow creation of URLBinding prototypes. The method would be similar to parseUrlBinding(Class<? extends ActionBean>), but would take a String parameter instead.
Example:
UrlBinding prototype = UrlBindingFactory.parseUrlBinding(String);
Callers could use this prototype could then be used for any purpose, for example added to the URLBindingFactory in a custom ActionResolver. The use case for this particular request, FYI, is a file-based ActionResolver implementation that would read URLBindings from a file. This would permit URLBindings to be configurable rather than welded to classes as annotations.
Hi, Andrew. I couldn't provide parseUrlBinding(String) because every UrlBinding must be associated with an ActionBean class. Instead, I added parseUrlBinding(Class, String) so you can pass in your own pattern along with the ActionBean class you want to associate it with. Hope this is sufficient for your needs.