Package com.opencloud.sentinel.mapper
Interface MapperLibrary<MapperExecutionPoint extends java.lang.Enum<?>>
-
public interface MapperLibrary<MapperExecutionPoint extends java.lang.Enum<?>>
Provides access to available mappers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <SessionStateType>
Mapper<SessionStateType>findMapper(com.opencloud.sentinel.common.SentinelSelectionKey key, java.lang.Class<?> from, java.lang.Class<?> to)
Retrieve a mapper<SessionStateType>
Mapper<SessionStateType>findMapper(com.opencloud.sentinel.common.SentinelSelectionKey key, java.lang.Class<?> from, java.lang.Class<?> to, MapperExecutionPoint mappingPoint)
Retrieve a mapper
-
-
-
Method Detail
-
findMapper
<SessionStateType> Mapper<SessionStateType> findMapper(com.opencloud.sentinel.common.SentinelSelectionKey key, java.lang.Class<?> from, java.lang.Class<?> to) throws MapperException
Retrieve a mapper- Parameters:
key
- selection keyfrom
- class the mapper maps fromto
- class the mapper maps too- Returns:
- a mapper, or null if no matching mapper was found
- Throws:
MapperException
- if there is a failure whilst finding a mapper
-
findMapper
<SessionStateType> Mapper<SessionStateType> findMapper(com.opencloud.sentinel.common.SentinelSelectionKey key, java.lang.Class<?> from, java.lang.Class<?> to, MapperExecutionPoint mappingPoint) throws MapperException
Retrieve a mapper- Parameters:
key
- selection keyfrom
- class the mapper maps fromto
- class the mapper maps toomappingPoint
- point in session where mapping is required- Returns:
- a mapper, or null if no matching mapper was found
- Throws:
MapperException
- if there is a failure whilst finding a mapper
-
-