Examples of processAnnotations()


Examples of com.thoughtworks.xstream.XStream.processAnnotations()

public class XmlSolverFactory implements SolverFactory {

    public static XStream buildXstream() {
        XStream xStream = new XStream(new PureJavaReflectionProvider(new FieldDictionary(new NativeFieldKeySorter())));
        xStream.setMode(XStream.ID_REFERENCES);
        xStream.processAnnotations(SolverConfig.class);
        return xStream;
    }

    private XStream xStream;
    private SolverConfig solverConfig = null;
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

     */
    public static XStreamDataFormat processAnnotations(Iterable<Class<?>> types) {
        XStreamDataFormat answer = new XStreamDataFormat();
        XStream xstream = answer.getXStream();
        for (Class<?> type : types) {
            xstream.processAnnotations(type);
        }
        return answer;
    }

    /**
 
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

     */
    public static XStreamDataFormat processAnnotations(Class<?>... types) {
        XStreamDataFormat answer = new XStreamDataFormat();
        XStream xstream = answer.getXStream();
        for (Class<?> type : types) {
            xstream.processAnnotations(type);
        }
        return answer;
    }   

    protected HierarchicalStreamWriter createHierarchicalStreamWriter(Exchange exchange, Object body, OutputStream stream) throws XMLStreamException {
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

    // -----------------------------------------------------------------------
    // write all properties without process in separate xml file
    // -----------------------------------------------------------------------
    XStream xstream = new XStream();
    xstream.setMode(XStream.NO_REFERENCES);
    xstream.processAnnotations(FireburnDataImport.class);
    xstream.processAnnotations(FireburnProperty.class);
    OutputStreamWriter fw = new OutputStreamWriter(new FileOutputStream(new File(notfoundFilename)), "UTF8");
    xstream.toXML(fdi.pNotFoundList, fw);
    // DEBUG
    long time2 = System.currentTimeMillis();
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

    // write all properties without process in separate xml file
    // -----------------------------------------------------------------------
    XStream xstream = new XStream();
    xstream.setMode(XStream.NO_REFERENCES);
    xstream.processAnnotations(FireburnDataImport.class);
    xstream.processAnnotations(FireburnProperty.class);
    OutputStreamWriter fw = new OutputStreamWriter(new FileOutputStream(new File(notfoundFilename)), "UTF8");
    xstream.toXML(fdi.pNotFoundList, fw);
    // DEBUG
    long time2 = System.currentTimeMillis();
    long time = time2 - time1;
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

     */
    public static XStreamDataFormat processAnnotations(ClassResolver resolver, Iterable<Class<?>> types) {
        XStreamDataFormat answer = new XStreamDataFormat();
        XStream xstream = answer.getXStream(resolver);
        for (Class<?> type : types) {
            xstream.processAnnotations(type);
        }
        return answer;
    }

    /**
 
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

     */
    public static XStreamDataFormat processAnnotations(ClassResolver resolver, Class<?>... types) {
        XStreamDataFormat answer = new XStreamDataFormat();
        XStream xstream = answer.getXStream(resolver);
        for (Class<?> type : types) {
            xstream.processAnnotations(type);
        }
        return answer;
    }
   
    // just make sure the exchange property can override the xmlstream encoding setting
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

     */
    public static XStreamDataFormat processAnnotations(Iterable<Class<?>> types) {
        XStreamDataFormat answer = new XStreamDataFormat();
        XStream xstream = answer.getXStream();
        for (Class<?> type : types) {
            xstream.processAnnotations(type);
        }
        return answer;
    }

    /**
 
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

     */
    public static XStreamDataFormat processAnnotations(Class<?>... types) {
        XStreamDataFormat answer = new XStreamDataFormat();
        XStream xstream = answer.getXStream();
        for (Class<?> type : types) {
            xstream.processAnnotations(type);
        }
        return answer;
    }
   
    // just make sure the exchange property can override the xmlstream encoding setting
View Full Code Here

Examples of com.thoughtworks.xstream.XStream.processAnnotations()

    ChannelRegistryBean registry = getRegistry(user, type);

    if("true".equals(request.getParameter("xml"))) {
      XStream stream = new XStream();
      stream.processAnnotations(ChannelRegistryBean.class);
      String xml = stream.toXML(registry);
      return new ModelAndView("xmlView", "xml", xml);
    } else {
      return new ModelAndView("jsonView", "registry", registry);
    }
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.