com.synerset.unitility.quarkus.ParsingRegistryProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of unitility-quarkus Show documentation
Show all versions of unitility-quarkus Show documentation
The Java Physics Units of Measure Library - Unitility, Quarkus extension.
This module integrates unitility-core and unitility-jackson. It provides a preconfigured Jackson module
and JakartaParamProvider, enabling automatic serialization/deserialization for all supported physical quantity
types. This configuration is automatically included through the Jandex index.
package com.synerset.unitility.quarkus;
import com.synerset.unitility.unitsystem.util.PhysicalQuantityParsingFactory;
import jakarta.enterprise.context.ApplicationScoped;
/**
* The ParsingRegistryProvider class is a Quarkus CDI bean providing a default {@link PhysicalQuantityParsingFactory}
* instance for dependency injection in Quarkus applications.
*/
class ParsingRegistryProvider {
@ApplicationScoped
@DefaultParsingFactory
PhysicalQuantityParsingFactory createParsingFactory() {
return PhysicalQuantityParsingFactory.getDefaultParsingFactory();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy