javax.wbem.listener
public class WBEMListenerFactory extends Object
WBEMListenerFactory
class is a factory for getting a
WBEMListener
implementation for a specific protocol.class MyListener implements IndicationListener { public void indicationOccured(CIMInstance e) { System.out.println(e); } } String protocol = WBEMClientConstants.PROTOCOL_CIMXML; WBEMListener api = WBEMListenerFactory.getListener(protocol); int port = api.addListener(MyListener, 1234, protocol);
Constructor and Description |
---|
WBEMListenerFactory()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
static WBEMListener |
getListener(String protocol)
Get a WBEM Listener implementation for the specified protocol.
|
static String[] |
getProtocols()
Get the names of the supported PROTOCOLS.
|
static String[] |
getPROTOCOLS()
Deprecated.
: Typo in method name, use getProtocols() instead
|
public static WBEMListener getListener(String protocol) throws IllegalArgumentException
protocol
- - the protocol nameWBEMListener
.IllegalArgumentException
- - Could not load protocol implementation.@Deprecated public static String[] getPROTOCOLS()
public static String[] getProtocols()
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.