|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.infinispan.loaders.keymappers.DefaultTwoWayKey2StringMapper
org.infinispan.loaders.keymappers.MarshalledValueOrPrimitiveMapper
public class MarshalledValueOrPrimitiveMapper
This class is an implementation for TwoWayKey2StringMapper
that supports both primitives
and MarshalledValue
s. It extends DefaultTwoWayKey2StringMapper
to achieve this.
Constructor Summary | |
---|---|
MarshalledValueOrPrimitiveMapper()
|
Method Summary | |
---|---|
Object |
getKeyMapping(String key)
Maps a String back to its original key |
String |
getStringMapping(Object key)
Must return an unique String for the supplied key. |
boolean |
isSupportedType(Class<?> keyType)
Do we support this key type? |
void |
setMarshaller(StreamingMarshaller marshaller)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarshalledValueOrPrimitiveMapper()
Method Detail |
---|
public void setMarshaller(StreamingMarshaller marshaller)
setMarshaller
in interface MarshallingTwoWayKey2StringMapper
public String getStringMapping(Object key)
Key2StringMapper
getStringMapping
in interface Key2StringMapper
getStringMapping
in class DefaultTwoWayKey2StringMapper
key
- key to map to a String
public Object getKeyMapping(String key)
TwoWayKey2StringMapper
getKeyMapping
in interface TwoWayKey2StringMapper
getKeyMapping
in class DefaultTwoWayKey2StringMapper
key
- string representation of a key
public boolean isSupportedType(Class<?> keyType)
Key2StringMapper
isSupportedType
in interface Key2StringMapper
isSupportedType
in class DefaultTwoWayKey2StringMapper
keyType
- type to test
|
Infinispan Distribution 5.2.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |