Examples of autodetectAnnotations()


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

        if(ClassResolver.isPresent(XPP_CLASS)) {
            xstream = new XStream();
        } else {
            xstream = new XStream(new DomDriver());
        }
        xstream.autodetectAnnotations(true);
        return xstream;
    }

    public XBirdCollectionStrategy(String collectionName, XStream xstream) {
        this.xstream = xstream;
View Full Code Here

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

                result.setMode(XStream.NO_REFERENCES);
            } else {
                result = new XStream(getXmlDriverClass().newInstance());
            }

            result.autodetectAnnotations(true);
        } catch (Exception e) {
            Context.getCurrentLogger().log(Level.WARNING,
                    "Unable to create the XStream driver.", e);
        }
View Full Code Here

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

    @Override
    public void notifyEnd(SuiteResult result)
    {
        CdataAwareXppDriver xppDriver = new CdataAwareXppDriver();
        XStream xStream = new XStream(xppDriver);
        xStream.autodetectAnnotations(true);
        suite.setErrors(result.getNumberOfErrors());
        suite.setFailures(result.getNumberOfFailures());
        suite.setTests(result.getNumberOfTests());
        suite.setTime(result.getTime());
        suite.setSkipped(result.getNumberOfSkipped());
View Full Code Here

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

  public void write(final Workflow wf) {
    new Thread(new Runnable() {
      public void run() {
        XStream writer = new XStream(new StaxDriver());
        writer.autodetectAnnotations(true);
        String xml = writer.toXML(new WorkflowSaver(wf));
        File currentDirectory = null;
        JFileChooser fileChooser = new JFileChooser();
        fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
        fileChooser.setCurrentDirectory(currentDirectory);
View Full Code Here

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

*/
public class ConfigPersistence {

    public static void serialize(Config config, File file) {
        XStream xstream = FreedomXStream.getXstream();
        xstream.autodetectAnnotations(true);

        String xml = xstream.toXML(config);
        // FileOutputStream fout;
        FileWriter fstream;

View Full Code Here

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

    public static Config deserialize(File file)
            throws IOException, ConversionException {
        LOG.config("Deserializing configuration from " + file.getAbsolutePath());

        XStream xstream = FreedomXStream.getXstream();
        xstream.autodetectAnnotations(true);

        String line;
        StringBuilder xml = new StringBuilder();

        FileInputStream fin = null;
View Full Code Here

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

public class AliasTest extends AbstractAcceptanceTest {

    @Override
    protected XStream createXStream() {
        XStream xstream = super.createXStream();
        xstream.autodetectAnnotations(true);
        return xstream;
    }

    public void testAnnotationForClassWithAnnotatedConverter() {
        Map<String, Person> map = new HashMap<String, Person>();
View Full Code Here

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

public class ParametrizedConverterTest extends AbstractAcceptanceTest {

    @Override
    protected XStream createXStream() {
        XStream xstream = super.createXStream();
        xstream.autodetectAnnotations(true);
        return xstream;
    }

    protected void setUp() throws Exception {
        super.setUp();
View Full Code Here

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

public class ImplicitCollectionTest extends AbstractAcceptanceTest {

    @Override
    protected XStream createXStream() {
        XStream xstream = super.createXStream();
        xstream.autodetectAnnotations(true);
        return xstream;
    }

    public void testAnnotation() {
        String expected = ""
View Full Code Here

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

public class OmitFieldTest extends AbstractAcceptanceTest {
   
    @Override
    protected XStream createXStream() {
        XStream xstream = super.createXStream();
        xstream.autodetectAnnotations(true);
        return xstream;
    }

    @XStreamAlias("apartment")
    public static class Apartment {
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.