Package org.hibernate.boot.spi
Interface AdditionalMappingContributor
-
- All Known Implementing Classes:
AdditionalMappingContributorImpl
@Incubating @JavaServiceLoadable public interface AdditionalMappingContributor
Contract allowing pluggable contributions of additional mapping objects. Resolvable as a Java service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
contribute(AdditionalMappingContributions contributions, InFlightMetadataCollector metadata, ResourceStreamLocator resourceStreamLocator, MetadataBuildingContext buildingContext)
Contribute the additional mappingsdefault String
getContributorName()
The name of this contributor.
-
-
-
Method Detail
-
getContributorName
default String getContributorName()
The name of this contributor. May benull
.- See Also:
Contributable
-
contribute
void contribute(AdditionalMappingContributions contributions, InFlightMetadataCollector metadata, ResourceStreamLocator resourceStreamLocator, MetadataBuildingContext buildingContext)
Contribute the additional mappings- Parameters:
contributions
- Collector of the contributions.metadata
- Current (live) metadata. Can be used to access already known mappings.resourceStreamLocator
- Delegate for locating XML resources via class-path lookup.buildingContext
- Access to useful contextual references.
-
-