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

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


        final ResourceResolverContext ctx = new ResourceResolverContext(false, null, new ResourceAccessSecurityTracker());

        final SortedProviderList<Adaptable> spl = new SortedProviderList<Adaptable>(Adaptable.class);
        check(spl, ctx);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp1), rp1.getProperties()));
        check(spl, ctx);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp2), rp2.getProperties()));
        check(spl, ctx, rp2);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp3), rp3.getProperties()));
        check(spl, ctx, rp2, rp3);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp4), rp4.getProperties()));
        check(spl, ctx, rp2, rp3);

        spl.remove(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp1), rp1.getProperties()));
        check(spl, ctx, rp2, rp3);
        spl.remove(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp1), rp1.getProperties()));
        check(spl, ctx, rp2, rp3);
        spl.remove(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp4), rp4.getProperties()));
        check(spl, ctx, rp2, rp3);
        spl.remove(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp2), rp2.getProperties()));
        check(spl, ctx, rp3);
        spl.remove(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp3), rp3.getProperties()));
        check(spl, ctx);
    }
View Full Code Here


        final ResourceResolverContext ctx = new ResourceResolverContext(false, null, new ResourceAccessSecurityTracker());

        final SortedProviderList<Adaptable> spl = new SortedProviderList<Adaptable>(Adaptable.class);
        check(spl, ctx);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp1), rp1.getProperties()));
        check(spl, ctx, rp1);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp2), rp2.getProperties()));
        check(spl, ctx, rp2, rp1);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp3), rp3.getProperties()));
        check(spl, ctx, rp2, rp1, rp3);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp4), rp4.getProperties()));
        check(spl, ctx, rp2, rp1, rp4, rp3);
        spl.add(new ResourceProviderFactoryHandler(new ResourceProviderFactoryImpl(rp5), rp5.getProperties()));
        check(spl, ctx, rp2, rp1, rp4, rp5, rp3);
    }
View Full Code Here

TOP

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

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.