Class DefaultStrategyDeterminationService<T>
java.lang.Object
de.hybris.platform.cpq.productconfig.services.impl.DefaultStrategyDeterminationService<T>
- Type Parameters:
T- Strategy interface
- All Implemented Interfaces:
StrategyDeterminationService<T>
public class DefaultStrategyDeterminationService<T>
extends Object
implements StrategyDeterminationService<T>
Simple service to select the proper strategy based on the current active engine.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultStrategyDeterminationService(EngineDeterminationService engineDeterminationService, T defaultStrategy, T mockStrategey) Default Constructor for injecting dependencies. -
Method Summary
Modifier and TypeMethodDescriptionget()protected Tprotected EngineDeterminationServiceprotected T
-
Constructor Details
-
DefaultStrategyDeterminationService
public DefaultStrategyDeterminationService(EngineDeterminationService engineDeterminationService, T defaultStrategy, T mockStrategey) Default Constructor for injecting dependencies.- Parameters:
engineDeterminationService- service to check whether to delegate to mock or default implementationdefaultStrategy- default strategymockStrategey- mock strategy
-
-
Method Details
-
get
- Specified by:
getin interfaceStrategyDeterminationService<T>- Returns:
- strategy for the current active engine
-
getEngineDeterminationService
-
getMockStrategy
-
getDefaultStrategy
-