Class ChenileInterceptorValidator
java.lang.Object
org.chenile.core.init.ChenileInterceptorValidator
- All Implemented Interfaces:
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final ChenileConfigurationprivate static final org.slf4j.Loggerprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionChenileInterceptorValidator(ChenileConfiguration chenileConfiguration, boolean validateOnStartup) -
Method Summary
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
chenileConfiguration
-
validateOnStartup
private final boolean validateOnStartup
-
-
Constructor Details
-
ChenileInterceptorValidator
public ChenileInterceptorValidator(ChenileConfiguration chenileConfiguration, boolean validateOnStartup)
-
-
Method Details
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceSmartInitializingSingleton
-
CHENILE