public interface Scanner
Defines the contract for Hibernate to be able to scan for classes, packages and resources inside a
persistence unit.
<p/>
Constructors are expected in one of 2 forms:<ul>
<li>no-arg</li>
<li>single arg, of type ArchiveDescriptorFactory
</li>
</ul>
<p/>
If a ArchiveDescriptorFactory is specified in the configuration, but the Scanner
to be used does not accept a ArchiveDescriptorFactory an exception will be thrown.
Modifier and Type | Method and Description |
---|---|
ScanResult |
scan(ScanEnvironment environment,
ScanOptions options,
ScanParameters params)
Perform the scanning against the described environment using the
defined options, and return the scan results.
|
ScanResult scan(ScanEnvironment environment, ScanOptions options, ScanParameters params)
Perform the scanning against the described environment using the defined options, and return the scan results.
environment
- The scan environment.options
- The options to control the scanning.params
- The parameters for scanningCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.