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

org.eclipse.jnosql.mapping.reflection.ReflectionClassScanner Maven / Gradle / Ivy

/*
 *  Copyright (c) 2023 Contributors to the Eclipse Foundation
 *   All rights reserved. This program and the accompanying materials
 *   are made available under the terms of the Eclipse Public License v1.0
 *   and Apache License v2.0 which accompanies this distribution.
 *   The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
 *   and the Apache License v2.0 is available at http://www.opensource.org/licenses/apache2.0.php.
 *
 *   You may elect to redistribute this code under either of these licenses.
 *
 *   Contributors:
 *
 *   Otavio Santana
 */
package org.eclipse.jnosql.mapping.reflection;

import jakarta.data.repository.DataRepository;
import org.eclipse.jnosql.mapping.metadata.ClassScanner;

import java.util.Set;

/**
 * A class that implements the {@link ClassScanner} interface using the ClassGraph library for class scanning.
 * This class provides methods to scan for different types of classes such as entities, repositories, and embeddables.
 */
public final class ReflectionClassScanner implements ClassScanner {

    @Override
    public Set> entities() {
        return ClassGraphClassScanner.INSTANCE.entities();
    }

    @Override
    public Set> repositories() {
        return ClassGraphClassScanner.INSTANCE.repositories();
    }

    @Override
    public Set> embeddables() {
        return ClassGraphClassScanner.INSTANCE.embeddables();
    }

    @Override
    public > Set> repositories(Class filter) {
        return ClassGraphClassScanner.INSTANCE.repositories(filter);
    }

    @Override
    public Set> repositoriesStandard() {
        return ClassGraphClassScanner.INSTANCE.repositoriesStandard();
    }

    @Override
    public Set> customRepositories() {
        return  ClassGraphClassScanner.INSTANCE.customRepositories();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy