Package org.apache.sling.discovery.impl.topology.announcement

Examples of org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistry


    }

    public static AnnouncementRegistry createITopologyAnnouncementRegistry(
            ResourceResolverFactory resourceResolverFactory, Config config, String slingId)
            throws Exception {
        AnnouncementRegistry topologyService = new AnnouncementRegistryImpl();

        PrivateAccessor.setField(topologyService, "resourceResolverFactory",
                resourceResolverFactory);
        PrivateAccessor.setField(topologyService, "settingsService",
                MockFactory.mockSlingSettingsService(slingId));
View Full Code Here


            @Override
            public long getHeartbeatTimeout() {
                return 20000;
            }
        };
        AnnouncementRegistry announcementRegistry = OSGiFactory
                .createITopologyAnnouncementRegistry(MockFactory
                        .mockResourceResolverFactory(), config, UUID.randomUUID()
                        .toString());

        ConnectorRegistry c = OSGiFactory.createConnectorRegistry(
View Full Code Here

TOP

Related Classes of org.apache.sling.discovery.impl.topology.announcement.AnnouncementRegistry

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.