io.permazen.OnValidateScanner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-main Show documentation
Show all versions of permazen-main Show documentation
Permazen classes that map Java model classes onto the core API.
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen;
import io.permazen.annotation.OnValidate;
import java.lang.reflect.Method;
/**
* Scans for {@link OnValidate @OnValidate} annotations.
*/
class OnValidateScanner extends AnnotationScanner {
OnValidateScanner(JClass jclass) {
super(jclass, OnValidate.class);
}
@Override
protected boolean includeMethod(Method method, OnValidate annotation) {
this.checkNotStatic(method);
this.checkReturnType(method, void.class);
this.checkParameterTypes(method);
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy