/gag

Automatically exported from code.google.com/p/gag

Primary LanguageJavaApache License 2.0Apache-2.0

To use the Google Annotations Gallery, download the gag-<version>.zip file
from http://code.google.com/p/gag/ and unzip.

You can find the annotations and supporting enumerations in gag.jar. If you
want to enforce the enforceable annotations, you can find the dynamic bytecode
instrumentation Java agent in gag-agent.jar.

To use the annotations, simply annotate your code with them and include
gag.jar in your classpath.

To use the Java agent: use at least JDK 5; use the -javaagent:gag-agent.jar
option; and put the agent-dependent jars in your classpath, like:

  java -javaagent:gag-agent.jar \
    -cp asm-3.1.jar:asm-commons-3.1.jar:google-collect-1.0.jar:gag.jar \
    MyAnnotatedClass

A demo can be run from ant by doing:

  ant run-demo