Skip to content

Instantly share code, notes, and snippets.

@naturalwarren
Created May 26, 2017 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naturalwarren/cc4567bf154cfab698c77f7543123155 to your computer and use it in GitHub Desktop.
Save naturalwarren/cc4567bf154cfab698c77f7543123155 to your computer and use it in GitHub Desktop.
Example usage of RAVE.
/**
* A factory class capable of creating a validator whose implementation generated at annotation processing time.
*/
public final class RaveValidatorFactory implements ValidatorFactory {
@NonNull
@Override
public BaseValidator generateValidator() {
return new RaveValidatorFactory_Generated_Validator();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment