Class DiscovererFactory


  • public class DiscovererFactory
    extends java.lang.Object
    Class DiscovererFactory is responsible for creating concrete instances of the Discoverer interface.
    Since:
    2.0.2
    Threading considerations:
    This class is thread-safe.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SLP
      The Service Location Protocol (SLP)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Discoverer getDiscoverer​(java.lang.String pProtocol)
      Returns the concrete Discoverer for a given discovery protocol.
      static java.lang.String[] getSupportedProtocols()
      Return an array of all supported discovery protocols
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SLP

        public static final java.lang.String SLP
        The Service Location Protocol (SLP)
        See Also:
        Constant Field Values
    • Method Detail

      • getDiscoverer

        public static Discoverer getDiscoverer​(java.lang.String pProtocol)
                                        throws java.lang.IllegalArgumentException
        Returns the concrete Discoverer for a given discovery protocol.
        Parameters:
        pProtocol - The discovery protocol, e.g. "SLP"
        Returns:
        The corresponding discoverer
        Throws:
        java.lang.IllegalArgumentException - On unsupported protocols
        Related patterns or idioms:
        Factory Method
      • getSupportedProtocols

        public static java.lang.String[] getSupportedProtocols()
        Return an array of all supported discovery protocols
        Returns:
        The supported protocols