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