Class InterceptorMapping
- java.lang.Object
-
- de.hybris.platform.servicelayer.interceptor.impl.InterceptorMapping
-
- All Implemented Interfaces:
org.springframework.core.Ordered
public class InterceptorMapping extends java.lang.Object implements org.springframework.core.Orderedresponsible for storing mapping type code configured bysetTypeCode(String), assigned interceptorInterceptorand list of replace interceptors- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description InterceptorMapping()InterceptorMapping(java.lang.String typeCode, Interceptor interceptor, java.util.Collection<Interceptor> replacements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterceptorgetInterceptor()Gets the configured interceptor.intgetOrder()java.util.Collection<Interceptor>getReplacedInterceptors()java.lang.StringgetTypeCode()Gets the configured typecode.voidsetInterceptor(Interceptor interceptor)voidsetOrder(int order)Set the ordering which will apply to this class's implementation of Ordered, used when applying multiple Interceptors.voidsetReplacedInterceptors(java.util.Collection<Interceptor> replacedInterceptors)voidsetTypeCode(java.lang.String typeCode)
-
-
-
Constructor Detail
-
InterceptorMapping
public InterceptorMapping()
-
InterceptorMapping
public InterceptorMapping(java.lang.String typeCode, Interceptor interceptor, java.util.Collection<Interceptor> replacements)
-
-
Method Detail
-
getInterceptor
public Interceptor getInterceptor()
Gets the configured interceptor.
-
setInterceptor
public void setInterceptor(Interceptor interceptor)
-
getTypeCode
public java.lang.String getTypeCode()
Gets the configured typecode.
-
setTypeCode
public void setTypeCode(java.lang.String typeCode)
-
getReplacedInterceptors
public java.util.Collection<Interceptor> getReplacedInterceptors()
-
setReplacedInterceptors
public void setReplacedInterceptors(java.util.Collection<Interceptor> replacedInterceptors)
-
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
-
-