Package com.netflix.astyanax.annotations

Examples of com.netflix.astyanax.annotations.Component


    private static List<ComponentField> componentFieldsForClass(Class<?> c) throws IntrospectionException {
        ArrayList<ComponentField> retval = new ArrayList<ComponentField>();

        List<Field> fields = getInheritedFields(c);
        for (Field field : fields) {
            Component comp = field.getAnnotation(Component.class);
            if (comp != null) {
                retval.add(new ComponentField(new PropertyDescriptor(field.getName(), c).getReadMethod(), comp.ordinal()));
            }
        }
        Collections.sort(retval);
        return retval;
    }
View Full Code Here


        this.clazz      = clazz;
        this.components = new ArrayList<ComponentSerializer<?>>();
        this.bufferSize = bufferSize;

        for (Field field : getFields(clazz, includeParentFields)) {
            Component annotation = field.getAnnotation(Component.class);
            if (annotation != null) {
        Serializer s = SerializerTypeInferer.getSerializer(field.getType());
                components.add(makeComponent(field, s, annotation.ordinal()));
            }
        }

        Collections.sort(this.components);
    }
View Full Code Here

TOP

Related Classes of com.netflix.astyanax.annotations.Component

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.