Package org.sblim.cimclient.discovery
Class DiscovererFactory
java.lang.Object
org.sblim.cimclient.discovery.DiscovererFactory
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic Discoverer
getDiscoverer
(String pProtocol) Returns the concrete Discoverer for a given discovery protocol.static String[]
Return an array of all supported discovery protocols
-
Field Details
-
SLP
The Service Location Protocol (SLP)- See Also:
-
-
Method Details
-
getDiscoverer
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
Return an array of all supported discovery protocols- Returns:
- The supported protocols
-