Class InterceptorExecutionPolicy
- java.lang.Object
-
- de.hybris.platform.servicelayer.interceptor.impl.InterceptorExecutionPolicy
-
public class InterceptorExecutionPolicy extends java.lang.ObjectPolicy that allows to disable certain interceptors. You can disable them per bean basis (no matter what kind of interceptor subclass they are) or choose to disable all validate interceptors (disabling all interceptors of different type than validate is not supported)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInterceptorExecutionPolicy.InterceptorExecutionContext<T extends Interceptor>static classInterceptorExecutionPolicy.InterceptorType
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDISABLED_INTERCEPTOR_BEANSstatic java.lang.StringDISABLED_INTERCEPTOR_TYPESstatic java.lang.StringDISABLED_UNIQUE_ATTRIBUTE_VALIDATOR_FOR_ITEM_TYPES
-
Constructor Summary
Constructors Constructor Description InterceptorExecutionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Interceptor>
java.util.Collection<T>getEnabledInterceptors(InterceptorExecutionPolicy.InterceptorExecutionContext<T> ctx)voidsetSessionService(SessionService sessionService)
-
-
-
Field Detail
-
DISABLED_INTERCEPTOR_BEANS
public static final java.lang.String DISABLED_INTERCEPTOR_BEANS
- See Also:
- Constant Field Values
-
DISABLED_INTERCEPTOR_TYPES
public static final java.lang.String DISABLED_INTERCEPTOR_TYPES
- See Also:
- Constant Field Values
-
DISABLED_UNIQUE_ATTRIBUTE_VALIDATOR_FOR_ITEM_TYPES
public static final java.lang.String DISABLED_UNIQUE_ATTRIBUTE_VALIDATOR_FOR_ITEM_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEnabledInterceptors
public <T extends Interceptor> java.util.Collection<T> getEnabledInterceptors(InterceptorExecutionPolicy.InterceptorExecutionContext<T> ctx)
-
setSessionService
public void setSessionService(SessionService sessionService)
-
-