org.kohsuke.stapler.jelly
Annotation Type RequiresView


@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.

Author:
Kohsuke Kawaguchi

Required Element Summary
 java.lang.String[] value
          Names of the view that's required.
 

Element Detail

value

public abstract java.lang.String[] value
Names of the view that's required.



Copyright © 2012. All Rights Reserved.