public class KeyTransformationHandler extends Object
Transformer implementation; and types for which a Transformer has
been explicitly registered through KeyTransformationHandler.registerTransformer().Transformable,
Transformer| Constructor and Description |
|---|
KeyTransformationHandler() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTransformationHandler |
getInstance(AdvancedCache<?,?> cache)
Gets the KeyTransformationHandler instance used by the supplied cache.
|
String |
keyToString(Object key) |
void |
registerTransformer(Class<?> keyClass,
Class<? extends Transformer> transformerClass)
Registers a
Transformer for the supplied key class. |
Object |
stringToKey(String s,
ClassLoader classLoader) |
public Object stringToKey(String s, ClassLoader classLoader)
public void registerTransformer(Class<?> keyClass, Class<? extends Transformer> transformerClass)
Transformer for the supplied key class.keyClass - the key class for which the supplied transformerClass should be usedtransformerClass - the transformer class to use for the supplied key classpublic static KeyTransformationHandler getInstance(AdvancedCache<?,?> cache)
cache - the cache for which we want to get the KeyTransformationHandler instanceCopyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.