Skip to content

Instantly share code, notes, and snippets.

@jweden
Created April 27, 2011 19:59
Show Gist options
  • Save jweden/945048 to your computer and use it in GitHub Desktop.
Save jweden/945048 to your computer and use it in GitHub Desktop.
Add requirements annotation
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Requirements {
String[] reqs();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment