Package org.apache.sling.discovery.impl.cluster

Examples of org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl


    // RepositoryProvider repoProvider = RepositoryProvider.instance();

    public static ClusterViewServiceImpl createClusterViewServiceImpl(
            String slingId, ResourceResolverFactory resourceResolverFactory, Config config)
            throws Exception {
        ClusterViewServiceImpl clusterViewService = new ClusterViewServiceImpl();
        PrivateAccessor.setField(clusterViewService, "resourceResolverFactory",
                resourceResolverFactory);
        PrivateAccessor.setField(clusterViewService, "settingsService",
                MockFactory.mockSlingSettingsService(slingId));
        PrivateAccessor.setField(clusterViewService, "config", config);
View Full Code Here

TOP

Related Classes of org.apache.sling.discovery.impl.cluster.ClusterViewServiceImpl

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.