private WanReplicationEndpoint[] createPublishers(WanReplicationConfig wanReplicationConfig, List<WanPublisherConfig> publisherConfigs) { WanReplicationEndpoint[] targetEndpoints = new WanReplicationEndpoint[publisherConfigs.size()]; int count = 0; for (WanPublisherConfig publisherConfig : publisherConfigs) { final WanReplicationEndpoint target = getOrCreate((WanReplicationEndpoint) publisherConfig.getImplementation(), node.getConfigClassLoader(), publisherConfig.getClassName()); if (target == null) { throw new InvalidConfigurationException("Either \'implementation\' or \'className\' " + "attribute need to be set in WanPublisherConfig"); } target.init(node, wanReplicationConfig, publisherConfig); targetEndpoints[count++] = target; } return targetEndpoints; }
private WanReplicationEndpoint[] createPublishers(WanReplicationConfig wanReplicationConfig, List<WanPublisherConfig> publisherConfigs) { WanReplicationEndpoint[] targetEndpoints = new WanReplicationEndpoint[publisherConfigs.size()]; int count = 0; for (WanPublisherConfig publisherConfig : publisherConfigs) { final WanReplicationEndpoint target = getOrCreate((WanReplicationEndpoint) publisherConfig.getImplementation(), node.getConfigClassLoader(), publisherConfig.getClassName()); if (target == null) { throw new InvalidConfigurationException("Either \'implementation\' or \'className\' " + "attribute need to be set in WanPublisherConfig"); } target.init(node, wanReplicationConfig, publisherConfig); targetEndpoints[count++] = target; } return targetEndpoints; }