class CodecMetaClassSupport extends Object
Helper methods for Codec metaclass operations.
Type | Name and description |
---|---|
static String |
DECODE_PREFIX |
static Object[] |
EMPTY_ARGS |
static String |
ENCODE_AS_PREFIX |
Constructor and description |
---|
CodecMetaClassSupport() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
addMetaMethod(List<ExpandoMetaClass> targetMetaClasses, String methodName, Closure closure) |
|
void |
configureCodecMethods(CodecFactory codecFactory, boolean cacheLookup, List<ExpandoMetaClass> targetMetaClasses) Adds "encodeAs*" and "decode*" metamethods for given codecClass |
Adds "encodeAs*" and "decode*" metamethods for given codecClass
codecClass
- the codec class