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.Ordered
responsible for storing mapping type code configured bysetTypeCode(String)
, assigned interceptorInterceptor
and 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 Interceptor
getInterceptor()
Gets the configured interceptor.int
getOrder()
java.util.Collection<Interceptor>
getReplacedInterceptors()
java.lang.String
getTypeCode()
Gets the configured typecode.void
setInterceptor(Interceptor interceptor)
void
setOrder(int order)
Set the ordering which will apply to this class's implementation of Ordered, used when applying multiple Interceptors.void
setReplacedInterceptors(java.util.Collection<Interceptor> replacedInterceptors)
void
setTypeCode(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:
getOrder
in interfaceorg.springframework.core.Ordered
-
-