Package org.apache.sling.resourceresolver.impl.tree

Examples of org.apache.sling.resourceresolver.impl.tree.RootResourceProviderEntry


            }
        };

        Mockito.when(mockedSession.getNamespacePrefix(NS_PREFIX)).thenReturn(NS_URL);

        final RootResourceProviderEntry rrpe = new RootResourceProviderEntry() {
            @Override
            @SuppressWarnings("unchecked")
            public <AdapterType> AdapterType adaptTo(ResourceResolverContext ctx, Class<AdapterType> type) {
                if(type == Session.class) {
                    return (AdapterType)activeSession;
View Full Code Here


                return found.iterator();
            }

        };

        final RootResourceProviderEntry rrp = new RootResourceProviderEntry();
        final Map<String, Object> props = new HashMap<String, Object>();
        props.put(Constants.SERVICE_ID, System.currentTimeMillis());
        props.put(ResourceProvider.ROOTS, "/");
        props.put(QueriableResourceProvider.LANGUAGES, QUERY_LANGUAGE);
        rrp.bindResourceProvider(provider, props);

        final CommonResourceResolverFactoryImpl  crf = new CommonResourceResolverFactoryImpl(new ResourceResolverFactoryActivator()) {
            @Override
            public ResourceDecoratorTracker getResourceDecoratorTracker() {
                return t;
View Full Code Here

TOP

Related Classes of org.apache.sling.resourceresolver.impl.tree.RootResourceProviderEntry

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.