@Override public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass) { return property.isAnnotationPresent(annotationClass); }
public List<Property> getLazyProperties(Class<?> entityClass) { List<Property> properties = reflection.findSerializableProperties(entityClass); List<Property> lazyProperties = new ArrayList<Property>(); for (Property property : properties) { if (property.isAnnotationPresent(Lazy.class)) lazyProperties.add(property); } return lazyProperties; }
public List<Property> getLazyProperties(Class<?> entityClass) { List<Property> properties = reflection.findSerializableProperties(entityClass); List<Property> lazyProperties = new ArrayList<Property>(); for (Property property : properties) { if (property.isAnnotationPresent(Lazy.class)) lazyProperties.add(property); } return lazyProperties; }
public List<Property> getLazyProperties(Class<?> entityClass) { List<Property> properties = reflection.findSerializableProperties(entityClass); List<Property> lazyProperties = new ArrayList<Property>(); for (Property property : properties) { if (property.isAnnotationPresent(Lazy.class)) lazyProperties.add(property); } return lazyProperties; }
public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (property.isAnnotationPresent(Include.class) && !property.isWritable()) property = new NoopWritableProperty(property.getName(), property.getType()); if (property.getType().isPrimitive()) codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property); else property.setObject(obj, readObject()); }
public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (property.isAnnotationPresent(Include.class) && !property.isWritable()) property = new NoopWritableProperty(property.getName(), property.getType()); if (property.getType().isPrimitive()) codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property); else property.setObject(obj, readObject()); }
public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (property.isAnnotationPresent(Include.class) && !property.isWritable()) property = new NoopWritableProperty(property.getName(), property.getType()); if (property.getType().isPrimitive()) codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property); else property.setObject(obj, readObject()); }
public void readAndSetProperty(Object obj, Property property) throws IOException, ClassNotFoundException, IllegalAccessException, InvocationTargetException { if (property.isAnnotationPresent(Include.class) && !property.isWritable()) property = new NoopWritableProperty(property.getName(), property.getType()); if (property.getType().isPrimitive()) codecRegistry.getPrimitivePropertyCodec(property.getType()).decodePrimitive(this, obj, property); else property.setObject(obj, readObject()); }