Package org.jboss.aerogear.simplepush.server.datastore

Examples of org.jboss.aerogear.simplepush.server.datastore.JpaDataStore


        this.persistenceUnit = persistenceUnit;
    }

    @Override
    public synchronized void start(StartContext context) throws StartException {
        dataStore = new JpaDataStore(persistenceUnit);
    }
View Full Code Here


        if (couchdb != null) {
            return new CouchDBDataStore(couchdb.get("url").asText(), couchdb.get("dbName").asText());
        }
        final JsonNode jpa = dataStore.get("jpa");
        if (jpa != null) {
            return new JpaDataStore(jpa.get("persistenceUnit").asText());
        }
        throw new IllegalStateException("datastore must be specified");
    }
View Full Code Here

TOP

Related Classes of org.jboss.aerogear.simplepush.server.datastore.JpaDataStore

Copyright © 2018 www.massapicom. 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.