Package org.apache.sling.api.resource

Examples of org.apache.sling.api.resource.ResourceProviderFactory


    public Object addingService(final ServiceReference reference) {
        final MergedResourcePicker picker = (MergedResourcePicker) bundleContext.getService(reference);
        if ( picker != null ) {
            final String mergeRoot = PropertiesUtil.toString(reference.getProperty(MergedResourcePicker.MERGE_ROOT), null);
            if (mergeRoot != null) {
                final ResourceProviderFactory providerFactory = new MergingResourceProviderFactory(mergeRoot, picker,
                        PropertiesUtil.toBoolean(reference.getProperty(MergedResourcePicker.READ_ONLY), true));
                final Dictionary<Object, Object> props = new Hashtable<Object, Object>();
                props.put(ResourceProvider.ROOTS, mergeRoot);
                props.put(ResourceProvider.OWNS_ROOTS, true);
View Full Code Here

TOP

Related Classes of org.apache.sling.api.resource.ResourceProviderFactory

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.