org.sblim.cimclient.discovery
Class DiscovererFactory

java.lang.Object
  extended by org.sblim.cimclient.discovery.DiscovererFactory

public class DiscovererFactory
extends 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
static String SLP
          The Service Location Protocol (SLP)
 
Method Summary
static Discoverer getDiscoverer(String pProtocol)
          Returns the concrete Discoverer for a given discovery protocol.
static 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 String SLP
The Service Location Protocol (SLP)

See Also:
Constant Field Values
Method Detail

getDiscoverer

public static Discoverer getDiscoverer(String pProtocol)
                                throws IllegalArgumentException
Returns the concrete Discoverer for a given discovery protocol.

Parameters:
pProtocol - The discovery protocol, e.g. "SLP"
Returns:
The corresponding discoverer
Throws:
IllegalArgumentException - On unsupported protocols
Related patterns or idioms:
Factory Method

getSupportedProtocols

public static String[] getSupportedProtocols()
Return an array of all supported discovery protocols

Returns:
The supported protocols


Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.