Class TimefoldSolverBeanFactory

java.lang.Object
ai.timefold.solver.spring.boot.autoconfigure.TimefoldSolverBeanFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware

@Configuration public class TimefoldSolverBeanFactory extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.EnvironmentAware
Must be seperated from TimefoldSolverAutoConfiguration since TimefoldSolverAutoConfiguration will not be available at runtime for a native image (since it is a BeanFactoryInitializationAotProcessor/ BeanFactoryPostProcessor).
  • Constructor Details

    • TimefoldSolverBeanFactory

      public TimefoldSolverBeanFactory()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • setEnvironment

      public void setEnvironment(org.springframework.core.env.Environment environment)
      Specified by:
      setEnvironment in interface org.springframework.context.EnvironmentAware
    • getBanner

      @Bean @Lazy public TimefoldSolverBannerBean getBanner()
    • getSolverFactory

      @Bean @Lazy @ConditionalOnMissingBean public <Solution_> SolverFactory<Solution_> getSolverFactory()
    • solverManager

      @Bean @Lazy @ConditionalOnMissingBean public <Solution_, ProblemId_> SolverManager<Solution_,ProblemId_> solverManager(SolverFactory solverFactory)
    • scoreManager

      @Bean @Lazy @ConditionalOnMissingBean @Deprecated(forRemoval=true) public <Solution_, Score_ extends Score<Score_>> ScoreManager<Solution_,Score_> scoreManager()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • solutionManager

      @Bean @Lazy @ConditionalOnMissingBean public <Solution_, Score_ extends Score<Score_>> SolutionManager<Solution_,Score_> solutionManager()