All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permazen.OnValidateScanner Maven / Gradle / Ivy

The newest version!

/*
 * 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(PermazenClass pclass) {
        super(pclass, 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