Examples of InMemoryStore


Examples of org.apache.james.imapserver.store.InMemoryStore

        return imapMessage.getUid();
    }

    private ImapMailbox getMailbox() throws MailboxException
    {
        ImapStore store = new InMemoryStore();
        ImapMailbox root = store.getMailbox( ImapConstants.USER_NAMESPACE );
        ImapMailbox test = store.createMailbox( root, "test", true );
        return test;
    }
View Full Code Here

Examples of org.apache.james.imapserver.store.InMemoryStore

        imapHost.createPrivateMailAccount( user );
    }

    protected ImapHost getHostImplementation()
    {
        return new JamesImapHost( new InMemoryStore() );
    }
View Full Code Here

Examples of org.apache.james.imapserver.store.InMemoryStore

     * Hack constructor which creates an in-memory store, and creates a console logger.
     */
    public JamesImapHost()
    {
        enableLogging( new ConsoleLogger() );
        store = new InMemoryStore();
        setupLogger( store );
        subscriptions = new MailboxSubscriptions();
    }
View Full Code Here

Examples of org.zorbaxquery.api.InMemoryStore

    callZorbaCalls("test1.xml", "<a><b>Hallo</b><b>Lukas</b><b>1</b></a>");
    callZorbaCalls("test1.xml", "<a><b>Hallo</b><b>Tim</b><b>1</b></a>");
  }

  private void callZorbaCalls(String filename, String value) throws Exception {
    InMemoryStore store = InMemoryStore.getInstance();
    Zorba zorba = Zorba.getInstance(store);
    String query = "declare variable $test external;" + "$test//b";
    XQuery xquery = zorba.compileQuery(query);
    xquery.setVariableAsDocument("test", filename, value);
    Iterator iter = xquery.iterator();
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.