]
Jason Porter updated SEAMCATCH-16:
----------------------------------
Fix Version/s: Alpha3
(was: Alpha1)
Affects Version/s: Alpha2
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: