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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<Solution_>
SolverFactory<Solution_><Solution_,Score_ extends Score<Score_>>
ScoreManager<Solution_,Score_> Deprecated, for removal: This API element is subject to removal in a future version.voidsetApplicationContext(org.springframework.context.ApplicationContext context) voidsetEnvironment(org.springframework.core.env.Environment environment) <Solution_,Score_ extends Score<Score_>>
SolutionManager<Solution_,Score_> <Solution_,ProblemId_>
SolverManager<Solution_,ProblemId_> solverManager(SolverFactory solverFactory)
-
Constructor Details
-
TimefoldSolverBeanFactory
public TimefoldSolverBeanFactory()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
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()
-