org.sblim.cimclient.discovery
Class DiscovererFactory

java.lang.Object
  extended by org.sblim.cimclient.discovery.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
static java.lang.String SLP
          The Service Location Protocol (SLP)
 
Method Summary
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


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