Class ChenileInterceptorValidator

java.lang.Object
org.chenile.core.init.ChenileInterceptorValidator
All Implemented Interfaces:
SmartInitializingSingleton

public class ChenileInterceptorValidator extends Object implements SmartInitializingSingleton
Resolves the deployable-wide interceptors named in chenile.pre.processors, chenile.post.processors and chenile.exception.handler once all singletons exist and before the application starts taking traffic. A misspelt or mistyped name therefore fails startup with a clear error instead of failing (or being skipped) at request time.

Set chenile.interceptors.validate-on-startup=false to defer resolution to the first request. Resolution is all-or-nothing either way.

  • Field Details

    • logger

      private static final org.slf4j.Logger logger
    • chenileConfiguration

      private final ChenileConfiguration chenileConfiguration
    • validateOnStartup

      private final boolean validateOnStartup
  • Constructor Details

    • ChenileInterceptorValidator

      public ChenileInterceptorValidator(ChenileConfiguration chenileConfiguration, boolean validateOnStartup)
  • Method Details