public ReportDao() { xstream = new XStream(); Annotations.configureAliases(xstream, ReportObjective.class); }
/** * Sets the classes, for which mappings will be read from class-level JDK 1.5+ annotation metadata. * * @see Annotations#configureAliases(XStream, Class[]) */ public void setAnnotatedClass(Class<?> annotatedClass) { Assert.notNull(annotatedClass, "'annotatedClass' must not be null"); Annotations.configureAliases(getXStream(), annotatedClass); }
/** * Sets annotated classes, for which aliases will be read from class-level JDK 1.5+ annotation metadata. * * @see Annotations#configureAliases(XStream, Class[]) */ public void setAnnotatedClasses(Class<?>[] annotatedClasses) { Assert.notEmpty(annotatedClasses, "'annotatedClasses' must not be empty"); Annotations.configureAliases(getXStream(), annotatedClasses); }