Package com.raynigon.unit.api.core
Class UnitApiCoreConfiguration
java.lang.Object
com.raynigon.unit.api.core.UnitApiCoreConfiguration
The UnitApiCoreConfiguration provides the
UnitsApiService
as a bean-
Constructor Summary
ConstructorDescriptionUnitApiCoreConfiguration
(List<javax.measure.spi.SystemOfUnits> systemsOfUnits) Creates a new configuration object which provides aUnitsApiService
bean, which contains all given systems of units. -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Initialize theUnitsApiService
bean with all existingSystemOfUnits
com.raynigon.unit.api.core.service.UnitsApiService
Bean factory for theUnitsApiService
-
Constructor Details
-
UnitApiCoreConfiguration
Creates a new configuration object which provides aUnitsApiService
bean, which contains all given systems of units.- Parameters:
systemsOfUnits
- TheSystemOfUnits
beans which should be usable from theUnitsApiService
-
-
Method Details
-
init
@PostConstruct public void init()Initialize theUnitsApiService
bean with all existingSystemOfUnits
-
unitsApiService
@Bean public com.raynigon.unit.api.core.service.UnitsApiService unitsApiService()Bean factory for theUnitsApiService
- Returns:
- The
UnitsApiService
bean which is initialized with allSystemOfUnits
beans
-