public class ModeAwareMapperBehavior extends Object implements ModeAwareMapperInvoker, MapperBehavior
Mode and a convenient way for the Mapper
to define the method for common YES / NO (Accept Mode or no), type operations based on Mode| Constructor and Description |
|---|
ModeAwareMapperBehavior() |
ModeAwareMapperBehavior(List<Mode> modesSupported) |
| Modifier and Type | Method and Description |
|---|---|
Mode |
getMode()
The
Mode for which only the wrappedMpper will be invoked.If null, it will execute everytime, however as good as not using this Wrapper |
List<Mode> |
getModesSupported()
Depends on the mapper
|
boolean |
invokeMapper(Mode mode)
Invoke is the Readers
Mode matches any of getModesSupported() |
void |
setMode(Mode m) |
void |
setModesSupported(List<Mode> modesSupported)
Depends on the mapper
|
public boolean invokeMapper(Mode mode)
Mode matches any of getModesSupported()invokeMapper in interface ModeAwareMapperInvokermode - as Modepublic void setModesSupported(List<Mode> modesSupported)
public List<Mode> getModesSupported()
getModesSupported in interface ModeAwarepublic Mode getMode()
Mode for which only the wrappedMpper will be invoked.Copyright © 2018. All rights reserved.