@Target(value={TYPE,PACKAGE}) @Retention(value=RUNTIME) public @interface UsePlugin
java.version=1.8 template_name1=template_class1 template_name2=template_class2 ...The java.version entry is optional and represents the minimum version of the JVM for which your plugin is activated. For example your plugin can only deal with LamdbaExpression in which case you put 1.8 as this feature only appeared in Java 8. If you don't put it, Java 6 is assumed (1.6). The plugins that are activated this way, have to return false from the method {STJSGenerationPlugin.loadByDefault}. The artifact containing your plugin(s) must be in the dependency of the STJS maven plugin in your pom, so that the stjs.plugins file could be found at runtime.
public abstract String[] value
Copyright © 2015. All Rights Reserved.