Class UnitApiCoreConfiguration

java.lang.Object
com.raynigon.unit.api.core.UnitApiCoreConfiguration

@Configuration @AutoConfiguration public class UnitApiCoreConfiguration extends Object
The UnitApiCoreConfiguration provides the UnitsApiService as a bean
  • Constructor Summary

    Constructors
    Constructor
    Description
    UnitApiCoreConfiguration(List<javax.measure.spi.SystemOfUnits> systemsOfUnits)
    Creates a new configuration object which provides a UnitsApiService bean, which contains all given systems of units.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initialize the UnitsApiService bean with all existing SystemOfUnits
    com.raynigon.unit.api.core.service.UnitsApiService
    Bean factory for the UnitsApiService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UnitApiCoreConfiguration

      public UnitApiCoreConfiguration(List<javax.measure.spi.SystemOfUnits> systemsOfUnits)
      Creates a new configuration object which provides a UnitsApiService bean, which contains all given systems of units.
      Parameters:
      systemsOfUnits - The SystemOfUnits beans which should be usable from the UnitsApiService
  • Method Details

    • init

      @PostConstruct public void init()
      Initialize the UnitsApiService bean with all existing SystemOfUnits
    • unitsApiService

      @Bean public com.raynigon.unit.api.core.service.UnitsApiService unitsApiService()
      Bean factory for the UnitsApiService
      Returns:
      The UnitsApiService bean which is initialized with all SystemOfUnits beans