Package org.apache.jackrabbit.oak.spi

Examples of org.apache.jackrabbit.oak.spi.QueryIndexProvider


    @Override
    public Object addingService(ServiceReference reference) {
        Object service = context.getService(reference);
        if (service instanceof QueryIndexProvider) {
            QueryIndexProvider provider = (QueryIndexProvider) service;
            providers.put(reference, provider);
            return service;
        } else {
            context.ungetService(reference);
            return null;
View Full Code Here


    private ContentRepositoryImpl(MicroKernel mk) {
        this(mk, getDefaultIndexProvider(mk));
    }

    private static QueryIndexProvider getDefaultIndexProvider(MicroKernel mk) {
        QueryIndexProvider provider = new Indexer(mk);
        provider.init();
        return provider;
    }
View Full Code Here

        List<CommitEditor> editors = new ArrayList<CommitEditor>();
        editors.add(new ValidatingEditor(validatorProvider));
        CompositeEditor editor = new CompositeEditor(editors);

        nodeStore = new KernelNodeStore(microKernel, editor);
        QueryIndexProvider qip = (indexProvider == null) ? getDefaultIndexProvider(microKernel) : indexProvider;
        queryEngine = new QueryEngineImpl(nodeStore, microKernel, qip);

        // TODO: use configurable context provider
        loginContextProvider = new LoginContextProviderImpl(this);
View Full Code Here

            CommitEditor commitEditor) {

        nodeStore = new KernelNodeStore(microKernel);
        nodeStore.setEditor(commitEditor);

        QueryIndexProvider qip = (indexProvider == null) ? getDefaultIndexProvider(microKernel) : indexProvider;
        queryEngine = new QueryEngineImpl(nodeStore, microKernel, qip);

        // TODO: use configurable context provider
        loginContextProvider = new LoginContextProviderImpl(this);
View Full Code Here

    @Override
    public Object addingService(ServiceReference reference) {
        Object service = context.getService(reference);
        if (service instanceof QueryIndexProvider) {
            QueryIndexProvider provider = (QueryIndexProvider) service;
            providers.put(reference, provider);
            return service;
        } else {
            context.ungetService(reference);
            return null;
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.QueryIndexProvider

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.