package net.sf.dobo.sample.checkfailed; import net.sf.dobo.Context; import net.sf.dobo.ContextMemberMethod; import net.sf.dobo.ContextMemberType; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) @Context(BusinessContextInterface.class) public @interface BusinessContext {@Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @interface actionOne {} @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @ContextMemberMethod(name = "actionTwo") @ContextMemberType(String.class) @interface ACTION_TWO {} @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @ContextMemberMethod(name = "actionThree", parameterType = { String.class} ) @ContextMemberType(String.class) @interface ACTION_THREE {} @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @ContextMemberMethod(name = "actionFour", parameterType = { String[].class} ) @ContextMemberType(String[].class) @interface ACTION_FOUR {} @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @ContextMemberMethod(parameterType = { int.class, int.class} ) @ContextMemberType(int.class) @interface add {} @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @ContextMemberMethod(parameterType = { float.class, float.class} ) @ContextMemberType(float.class) @interface div {} @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) @ContextMemberMethod(parameterType = { double.class, int.class} ) @ContextMemberType(double.class) @interface multiply {} }