@Override public Object getValue(Property property, Object model, ExportConfig config) throws IOException { try { return property.getValue(model); } catch (IllegalAccessException | InvocationTargetException | NotExportableException e) { if(!property.getType().isAssignableFrom(NotExportedBean.class)){ throw new IOException("Failed to write "+property.name); } return SKIP; //skip failing property } } }
Class t = p.getType(); final boolean isCollection; final Class itemType;
Class t = p.getType(); final boolean isCollection; final Class itemType;
Class t = p.getType(); final boolean isCollection; final Class itemType;