[seam-issues] [JBoss JIRA] Resolved: (SEAMCATCH-16) Provide convenience constants for precedents
Jason Porter (JIRA)
jira-events at lists.jboss.org
Sat Dec 4 12:44:47 EST 2010
[ https://jira.jboss.org/browse/SEAMCATCH-16?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason Porter resolved SEAMCATCH-16.
-----------------------------------
Resolution: Done
Complete
> Provide convenience constants for precedents
> --------------------------------------------
>
> Key: SEAMCATCH-16
> URL: https://jira.jboss.org/browse/SEAMCATCH-16
> Project: Seam Catch
> Issue Type: Feature Request
> Affects Versions: Alpha1, Alpha2
> Reporter: Dan Allen
> Assignee: Jason Porter
> Priority: Minor
> Fix For: Alpha3
>
>
> First time users get a little scared when they see:
> public void redirectingHandler(@Handles(precedence = -100) CaughtException<Throwable> event, NavigationHandler nav) { .. }
> To provide more guidance to first time users and integrators, we should provide some named constants for common purposes, similar to the Install annotation from Seam 2. For instance, -100 is perhaps a typical precedence for a built-in handler. Thus, we can make this a constant:
> public void redirectingHandler(@Handles(precedence = BUILT_IN) CaughtException<Throwable> event, NavigationHandler nav) { .. }
> Here's a possible list:
> BUILT_IN = -100;
> FRAMEWORK = -50;
> DEFAULT = 0;
> LOW = 50;
> HIGH = 100;
> Of course, the user can always use any int value. These are just conveniences.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list