org.hibernate.boot.archive.scan.internal.ScanResultImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* 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;
}
}