|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface RequiresView
Indicates that concrete subtypes must have the views of the specified names.
For example, if your abstract class defines a mandatory view "foo.jelly", write
@RequiresView("foo.jelly").
TODO: write a checker that makes sure all the subtypes have required views.
I initially tried to do this in AnnotationProcessorImpl, but they don't see
resources, so the check needs to be done much later, probably by inspecting the jar file.
| Required Element Summary | |
|---|---|
String[] |
value
Names of the view that's required. |
| Element Detail |
|---|
public abstract String[] value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||