Class InterceptorMapping
java.lang.Object
de.hybris.platform.servicelayer.interceptor.impl.InterceptorMapping
- All Implemented Interfaces:
org.springframework.core.Ordered
responsible for storing mapping type code configured by
setTypeCode(String), assigned interceptor
Interceptor and list of replace interceptors- Since:
- 4.0
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionInterceptorMapping(String typeCode, Interceptor interceptor, Collection<Interceptor> replacements) -
Method Summary
Modifier and TypeMethodDescriptionGets the configured interceptor.final intgetOrder()Gets the configured typecode.voidsetInterceptor(Interceptor interceptor) final voidsetOrder(int order) Set the ordering which will apply to this class's implementation of Ordered, used when applying multiple Interceptors.voidsetReplacedInterceptors(Collection<Interceptor> replacedInterceptors) voidsetTypeCode(String typeCode)
-
Constructor Details
-
InterceptorMapping
public InterceptorMapping() -
InterceptorMapping
public InterceptorMapping(String typeCode, Interceptor interceptor, Collection<Interceptor> replacements)
-
-
Method Details
-
getInterceptor
Gets the configured interceptor. -
setInterceptor
-
getTypeCode
Gets the configured typecode. -
setTypeCode
-
getReplacedInterceptors
-
setReplacedInterceptors
-
setOrder
public final void setOrder(int order) Set the ordering which will apply to this class's implementation of Ordered, used when applying multiple Interceptors.Default value is
Integer.MAX_VALUE, meaning that it's non-ordered.- Parameters:
order- ordering value
-
getOrder
public final int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-