Examples of ggClassId()


Examples of org.gridgain.grid.marshaller.optimized.GridOptimizedMarshallable.ggClassId()

    static GridOptimizedClassDescriptor classDescriptor(Class<?> cls, @Nullable Object obj) throws IOException {
        if (obj != null) {
            if (obj instanceof GridOptimizedMarshallable) {
                GridOptimizedMarshallable m = (GridOptimizedMarshallable)obj;

                Object clsId = m.ggClassId();

                if (clsId != null && !(clsId instanceof GridOptimizedClassDescriptor))
                    throw new IOException("Method '" + obj.getClass().getName() + ".ggClassId() must return " +
                        "the value of the field '" + CLS_ID_FIELD_NAME + "'.");
View Full Code Here

Examples of org.gridgain.grid.marshaller.optimized.GridOptimizedMarshallable.ggClassId()

                                throw new IOException("Field '" + CLS_ID_FIELD_NAME + "' must be declared static: " +
                                    obj.getClass().getName());

                            field.set(null, desc);

                            if (m.ggClassId() == null)
                                throw new IOException( "Method '" + obj.getClass().getName() + ".ggClassId() must " +
                                    "return the value of the field '" + CLS_ID_FIELD_NAME + "': "
                                    + obj.getClass().getName());
                        }
                        else if (!(o instanceof GridOptimizedClassDescriptor))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.