01: // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
02:
03: package jodd.madvoc.meta;
04:
05: import java.lang.annotation.Documented;
06: import java.lang.annotation.ElementType;
07: import java.lang.annotation.Retention;
08: import java.lang.annotation.RetentionPolicy;
09: import java.lang.annotation.Target;
10:
11: /**
12: * Marker for Madvoc action, i.e. classes with action methods.
13: * <p>
14: * All Madvoc action classes <b>must</b> be annotated with this annotation. Its value defines an action path prefix
15: * for all {@link Action} methods. If default empty value is used, action path is built implicitly
16: * from the class name, by uncapitalizing the first character and removing the action class name suffix.
17: s */
18: @Documented
19: @Retention(RetentionPolicy.RUNTIME)
20: @Target({ElementType.TYPE})
21: public @interface MadvocAction {
22:
23: /**
24: * Action path value.
25: */
26: String value() default "";
27:
28: }
|