org.softamis.cluster4spring.support.context
Interface ExporterAcceptor<AE extends AutoDiscoveredServiceExporter,SP extends ServicePublisher>

Type Parameters:
AE - type of service exporter
SP - type of service publisher
All Known Implementing Classes:
DefaultExporterAcceptor, GroupBasedExporterAcceptor

public interface ExporterAcceptor<AE extends AutoDiscoveredServiceExporter,SP extends ServicePublisher>

Interface defines policy used to select service exporters to publish (this is needed to publish autodiscovering services)

Author:
Andrew Sazonov
See Also:
AutoDiscoveredServiceExporter, ServicePublisher

Method Summary
 boolean canAcceptExporterForPublishing(AE aExporter, SP aPublisher)
          Determines whether service exporter by given publisher should be published by given publisher.
 

Method Detail

canAcceptExporterForPublishing

boolean canAcceptExporterForPublishing(AE aExporter,
                                       SP aPublisher)
Determines whether service exporter by given publisher should be published by given publisher.

Parameters:
aExporter - exporter
aPublisher - publisher that publishes services
Returns:
true if publisher should publish service exported by exporter