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 = "CIM-XML";
WBEMListener api = WBEMListenerFactory.getListener(protocol);
int port = api.addListener(MyListener, 1234, protocol);
| Constructor Summary | |
|---|---|
| WBEMListenerFactory()
Ctor. | |
| Method Summary | |
|---|---|
| static WBEMListener | getListener(String protocol)
Get a WBEM Listener implementation for the specified protocol.
|
| static String[] | getPROTOCOLS()
Get the names of the supported PROTOCOLS.
|
Parameters: protocol - the protocol name
Returns: Implementation of WBEMListener.
Throws: IllegalArgumentException - Could not load protocol implementation.
Returns: A string array of the protocol names supported.