Package org.apache.jackrabbit.oak.core

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


        // add index hooks later to prevent the OakInitializer to do excessive indexing
        with(new IndexUpdateProvider(indexEditors));
        withEditorHook();
        CommitHook commitHook = CompositeHook.compose(commitHooks);
        return new ContentRepositoryImpl(
                store,
                commitHook,
                defaultWorkspaceName,
                indexProvider,
                securityProvider);
View Full Code Here


    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

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

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

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

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

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

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

        // add index hooks later to prevent the OakInitializer to do excessive indexing
        with(new IndexUpdateProvider(indexEditors));
        with(new EventQueueWriterProvider());
        withEditorHook();
        CommitHook commitHook = CompositeHook.compose(commitHooks);
        return new ContentRepositoryImpl(
                store,
                commitHook,
                defaultWorkspaceName,
                indexProvider,
                securityProvider);
View Full Code Here

        withValidatorHook();
        withSecurityHooks();
        store.setHook(CompositeHook.compose(commitHooks));

        return new ContentRepositoryImpl(
                store,
                conflictHandler,
                CompositeQueryIndexProvider.compose(queryIndexProviders),
                securityProvider);
    }
View Full Code Here

    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

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.