Package org.apache.jackrabbit.oak.jcr.configuration

Examples of org.apache.jackrabbit.oak.jcr.configuration.RepositoryConfiguration


        this.sessionContext = sessionContext;
        this.transientSpace = transientSpace;

        int cacheSize = 0;
        try {
            RepositoryConfiguration config =
                    sessionContext.getGlobalContext().getInstance(
                            RepositoryConfiguration.class);
            cacheSize = config.getNodeStateCacheSize();
        } catch (IllegalStateException ignore) {
            // FIXME: Shouldn't use the context to pass around configuration
        }

        if (cacheSize <= 0) {
View Full Code Here


        String url = "mem:oak";
        if (args.length > 0) {
            url = args[0];
        }

        RepositoryConfiguration configuration =
                OakRepositoryConfiguration.create(Collections.singletonMap(
                        RepositoryConfiguration.MICROKERNEL_URL, url));
        final Repository repository =
                new GlobalContext(configuration).getInstance(Repository.class);
        Servlet servlet = new JCRWebdavServerServlet() {
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.jcr.configuration.RepositoryConfiguration

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.