public interface Priorities
Defines priority classes that can used together with the Priority
annotation to decorate ViewEngine
implementations. When
multiple view engines are available to process a view, the one with the highest
priority is chosen. If two or more view engines can process the same view and they
all have the same priority, one is chosen in an implementation-defined manner.
Applications can define observers for BeforeProcessViewEvent
and AfterProcessViewEvent
to get additional information about
view processing.
Priority
,
ViewEngine
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION
Recommended priority for all application-provided view engines.
|
static int |
DEFAULT
Default priority for all built-in view engines.
|
static int |
FRAMEWORK
Recommended priority for all view engines provided by frameworks built
on top of MVC implementations.
|
static final int DEFAULT
static final int FRAMEWORK
static final int APPLICATION
Copyright © 2017 Ivar Grimstad. All rights reserved.