Class LegacyModeChecker

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class LegacyModeChecker
    extends java.lang.Object
    implements org.springframework.context.ApplicationContextAware
    Checks whether legacy mode enablement flag for the promotions correlates with the bean version being used in runtime
    • Constructor Detail

      • LegacyModeChecker

        public LegacyModeChecker()
    • Method Detail

      • check

        public void check()
        Performs check whether legacy mode is enabled
        Throws:
        LegacyException - if legacy mode is disabled
      • checkLegacyModeOnStartUp

        protected void checkLegacyModeOnStartUp()
      • init

        @PostConstruct
        protected void init()
      • logWarning

        protected void logWarning()
      • logErrorAndThrowException

        protected void logErrorAndThrowException()
      • setPromotionsService

        public void setPromotionsService​(PromotionsService promotionsService)
      • getLegacyPromotionsService

        protected PromotionsService getLegacyPromotionsService()
      • setLegacyPromotionsService

        public void setLegacyPromotionsService​(PromotionsService legacyPromotionsService)
      • getApplicationContext

        protected org.springframework.context.ApplicationContext getApplicationContext()
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
      • isLegacyModeEnabled

        protected boolean isLegacyModeEnabled()
      • setLegacyModeEnabled

        public void setLegacyModeEnabled​(boolean legacyModeEnabled)