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

org.rapidoid.scan.ScanParams Maven / Gradle / Ivy

package org.rapidoid.scan;

/*
 * #%L
 * rapidoid-scan
 * %%
 * Copyright (C) 2014 - 2015 Nikolche Mihajlovski and contributors
 * %%
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * #L%
 */

import org.rapidoid.annotation.Authors;
import org.rapidoid.annotation.Since;
import java.util.*;

@Authors("Nikolche Mihajlovski")
@Since("2.5.0")
public class ScanParams {

    private String pkg = null;

    private String matching = null;

    private org.rapidoid.lambda.Predicate> filter = null;

    private Class annotated = null;

    private ClassLoader classLoader = null;

	public synchronized ScanParams pkg(String pkg) {
	    this.pkg = pkg;
	    return this;
	}

	public synchronized String pkg() {
		return this.pkg;
	}

	public synchronized ScanParams matching(String matching) {
	    this.matching = matching;
	    return this;
	}

	public synchronized String matching() {
		return this.matching;
	}

	public synchronized ScanParams filter(org.rapidoid.lambda.Predicate> filter) {
	    this.filter = filter;
	    return this;
	}

	public synchronized org.rapidoid.lambda.Predicate> filter() {
		return this.filter;
	}

	public synchronized ScanParams annotated(Class annotated) {
	    this.annotated = annotated;
	    return this;
	}

	public synchronized Class annotated() {
		return this.annotated;
	}

	public synchronized ScanParams classLoader(ClassLoader classLoader) {
	    this.classLoader = classLoader;
	    return this;
	}

	public synchronized ClassLoader classLoader() {
		return this.classLoader;
	}

	public synchronized List> getClasses() {
		return ClasspathUtil.getClasses(this);
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy