Package org.apache.jackrabbit.oak.core

Examples of org.apache.jackrabbit.oak.core.ContentRepositoryImpl


    public void newRepositoryInitializer(RepositoryInitializer ri) {
        List<ServiceReference> mkRefs = new ArrayList<ServiceReference>(services.keySet());
        for (ServiceReference ref : mkRefs) {
            Object service = context.getService(ref);
            if (service instanceof ContentRepositoryImpl) {
                ContentRepositoryImpl repository = (ContentRepositoryImpl) service;
                OakInitializer.initialize(repository.getNodeStore(), ri,
                        indexEditorProvider);
            }
        }
    }
View Full Code Here


        this.executor = executor;
    }

    public RepositoryImpl(
            MicroKernel kernel, ScheduledExecutorService executor) {
        this(new ContentRepositoryImpl(
                kernel, null, new CompositeHook(
                        new ValidatingHook(DEFAULT_VALIDATOR),
                        new UniqueIndexHook())),
                executor);
    }
View Full Code Here

            // hooks.add(new LuceneEditor());

            MicroKernel kernel = (MicroKernel) service;
            services.put(reference, context.registerService(
                    ContentRepository.class.getName(),
                    new ContentRepositoryImpl(
                            kernel, indexProvider, new CompositeHook(hooks)),
                    new Properties()));
            return service;
        } else {
            context.ungetService(reference);
View Full Code Here

    }

    protected abstract ContentRepository createRepository();

    protected static ContentRepository createEmptyRepository() {
        return new ContentRepositoryImpl();
    }
View Full Code Here

            server.stop();
        }

        private void addServlets(MicroKernel kernel, String path) {
            ContentRepository repository =
                    new ContentRepositoryImpl(kernel, null, buildDefaultCommitHook());

            ServletHolder oak =
                    new ServletHolder(new OakServlet(repository));
            context.addServlet(oak, path + "/*");

 
View Full Code Here

        // return new RepositoryImpl();

        mk = new IndexWrapper(mk);
        ValidatingHook ve =  new ValidatingHook(
                new CompositeValidatorProvider(Collections.<ValidatorProvider>emptyList()));
        ContentRepository contentRepository = new ContentRepositoryImpl(mk, null, ve);
        return new RepositoryImpl(contentRepository, null);

    }
View Full Code Here

        }
    }

    @Override
    protected ContentRepository createRepository() {
        return new ContentRepositoryImpl(new UniqueIndexHook());
    }
View Full Code Here

    @Override
    protected ContentRepository createRepository() {
        QueryIndexProvider indexer = new LuceneIndexProvider(DEFAULT_INDEX_HOME);
        QueryIndexProvider qip = new CompositeQueryIndexProvider(indexer);
        return new ContentRepositoryImpl(new MicroKernelImpl(), qip,
                new LuceneHook(DEFAULT_INDEX_HOME));
    }
View Full Code Here

        // Indexer indexer = new Indexer(mk);

        PropertyIndexer pi = new PropertyIndexer(indexer);
        QueryIndexProvider qip = new CompositeQueryIndexProvider(pi);
        CompositeHook hook = new CompositeHook(pi);
        return new ContentRepositoryImpl(mk, qip, hook);
    }
View Full Code Here

        RepositoryManager repositoryManager = new RepositoryManager(whiteboard);
        registerMBean(whiteboard, RepositoryManagementMBean.class, repositoryManager,
                RepositoryManagementMBean.TYPE, repositoryManager.getName());

        return new ContentRepositoryImpl(
                store,
                CompositeHook.compose(commitHooks),
                defaultWorkspaceName,
                indexProvider,
                securityProvider);
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.core.ContentRepositoryImpl

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.