Package info.archinnov.achilles.annotations

Examples of info.archinnov.achilles.annotations.TypeTransformer


                "Target type of codec declared in annotation @TypeTransformer on the field '%s' of class '%s' should not be null",
                fieldName, className);
    }

    private Codec<?, ?> getValueCodecInstance(Field field) {
        final TypeTransformer typeTransformer = field.getAnnotation(TypeTransformer.class);
        final Class<?> codecClass = typeTransformer.valueCodecClass();

        final String fieldName = field.getName();
        final String className = field.getDeclaringClass().getCanonicalName();

        validateInstanceOfCodec(codecClass, fieldName, className);
View Full Code Here


        return validateInstantiable(field, codecClass);
    }

    private Codec<?, ?> getKeyCodecInstance(Field field) {
        final TypeTransformer typeTransformer = field.getAnnotation(TypeTransformer.class);
        final Class<?> codecClass = typeTransformer.keyCodecClass();

        final String fieldName = field.getName();
        final String className = field.getDeclaringClass().getCanonicalName();

        validateInstanceOfCodec(codecClass, fieldName, className);
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.annotations.TypeTransformer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.