This repository was archived by the owner on Dec 15, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
core/src/main/java/org/mvcspec/ozark/engine Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 16
16
package org .mvcspec .ozark .engine ;
17
17
18
18
import javax .annotation .Priority ;
19
- import javax .mvc .engine .Priorities ;
19
+ import javax .mvc .engine .ViewEngine ;
20
20
import javax .mvc .engine .ViewEngineContext ;
21
21
import javax .mvc .engine .ViewEngineException ;
22
22
import javax .servlet .ServletException ;
30
30
* @author Santiago Pericas-Geertsen
31
31
* @see ViewEngineBase#resolveView(javax.mvc.engine.ViewEngineContext)
32
32
*/
33
- @ Priority (Priorities . DEFAULT )
33
+ @ Priority (ViewEngine . PRIORITY_DEFAULT )
34
34
public class FaceletsViewEngine extends ServletViewEngine {
35
35
36
36
/**
Original file line number Diff line number Diff line change 16
16
package org .mvcspec .ozark .engine ;
17
17
18
18
import javax .annotation .Priority ;
19
- import javax .mvc .engine .Priorities ;
19
+ import javax .mvc .engine .ViewEngine ;
20
20
import javax .mvc .engine .ViewEngineContext ;
21
21
import javax .mvc .engine .ViewEngineException ;
22
22
import javax .servlet .ServletException ;
29
29
* @author Santiago Pericas-Geertsen
30
30
* @see ViewEngineBase#resolveView(javax.mvc.engine.ViewEngineContext)
31
31
*/
32
- @ Priority (Priorities . DEFAULT )
32
+ @ Priority (ViewEngine . PRIORITY_DEFAULT )
33
33
public class JspViewEngine extends ServletViewEngine {
34
34
35
35
/**
Original file line number Diff line number Diff line change 20
20
import javax .annotation .Priority ;
21
21
import javax .enterprise .context .ApplicationScoped ;
22
22
import javax .inject .Inject ;
23
- import javax .mvc .engine .Priorities ;
24
23
import javax .mvc .engine .ViewEngine ;
25
24
import java .util .HashMap ;
26
25
import java .util .List ;
@@ -85,9 +84,9 @@ public ViewEngine find(Viewable viewable) {
85
84
engine = candidates .stream ().max (
86
85
(e1 , e2 ) -> {
87
86
final Priority p1 = getAnnotation (e1 .getClass (), Priority .class );
88
- final int v1 = p1 != null ? p1 .value () : Priorities . DEFAULT ;
87
+ final int v1 = p1 != null ? p1 .value () : ViewEngine . PRIORITY_DEFAULT ;
89
88
final Priority p2 = getAnnotation (e2 .getClass (), Priority .class );
90
- final int v2 = p2 != null ? p2 .value () : Priorities . DEFAULT ;
89
+ final int v2 = p2 != null ? p2 .value () : ViewEngine . PRIORITY_DEFAULT ;
91
90
return v1 - v2 ;
92
91
});
93
92
// Update cache
You can’t perform that action at this time.
0 commit comments