@Documented
@Target(value=TYPE)
public @interface View
Modifier and Type | Optional Element and Description |
---|---|
Feature |
inject
Enum controlling whether javax.inject integration is generated for the view.
|
java.lang.String |
name
Return the name of the view.
|
boolean |
requireRender
Flag controlling whether the view requires a method annotated with
Render . |
Feature |
sting
Enum controlling whether Sting injection integration is generated for the view.
|
View.Type |
type
Enum indicating the capabilities of the view.
|
@Nonnull public abstract java.lang.String name
public abstract Feature inject
Feature.ENABLE
unless there are constructor parameters on the view. If the value is set to
Feature.AUTODETECT
then the feature will be enabled if the view has
constructor parameters and the javax.inject.Inject
class is present when
compiling the view.public abstract Feature sting
Feature.ENABLE
unless there are constructor parameters on the view. If the value is set to
Feature.AUTODETECT
then the feature will be enabled if the view has
constructor parameters and the sting.Injectable
class is present when compiling
the view.public abstract boolean requireRender
Render
.
Sometimes it is useful to have "view" instances that provide capabilities or interact
with services and thus need not have a render method.Render
, false otherwise.