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

org.hibernate.boot.archive.scan.internal.ScanResultImpl Maven / Gradle / Ivy

The newest version!
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.boot.archive.scan.internal;

import java.util.Set;

import org.hibernate.boot.archive.scan.spi.ClassDescriptor;
import org.hibernate.boot.archive.scan.spi.MappingFileDescriptor;
import org.hibernate.boot.archive.scan.spi.PackageDescriptor;
import org.hibernate.boot.archive.scan.spi.ScanResult;


/**
* @author Steve Ebersole
*/
public class ScanResultImpl implements ScanResult {
	private final Set packageDescriptorSet;
	private final Set classDescriptorSet;
	private final Set mappingFileSet;

	public ScanResultImpl(
			Set packageDescriptorSet,
			Set classDescriptorSet,
			Set mappingFileSet) {
		this.packageDescriptorSet = packageDescriptorSet;
		this.classDescriptorSet = classDescriptorSet;
		this.mappingFileSet = mappingFileSet;
	}

	@Override
	public Set getLocatedPackages() {
		return packageDescriptorSet;
	}

	@Override
	public Set getLocatedClasses() {
		return classDescriptorSet;
	}

	@Override
	public Set getLocatedMappingFiles() {
		return mappingFileSet;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy