io.permazen.OnDeleteScanner 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.OnDelete;
import java.lang.reflect.Method;
/**
* Scans for {@link OnDelete @OnDelete} annotations.
*/
class OnDeleteScanner extends AnnotationScanner {
OnDeleteScanner(JClass jclass) {
super(jclass, OnDelete.class);
}
@Override
protected boolean includeMethod(Method method, OnDelete annotation) {
this.checkNotStatic(method);
this.checkReturnType(method, void.class);
this.checkParameterTypes(method);
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy