|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.obe.client.api.WMClientFactory
Factory class to support pluggable client implementations. As standard, local, j2ee-local, rmi and xml-rpc are supported.
Field Summary | |
static java.lang.String |
J2EE_LOCAL
Represents a standard, local J2EE interface. |
static java.lang.String |
LOCAL
Represents a standard, local Java interface. |
static java.lang.String |
RMI
Represents the standard RMI remote protocol. |
static java.lang.String |
XML_RPC
Represents the XML-RPC protocol. |
Method Summary | |
static WMClient |
createClient()
Creates a client instance using the default protocol. |
static WMClient |
createClient(java.lang.String protocol)
Creates a client instance for the specified protocol. |
static void |
registerClientClass(java.lang.String protocol,
java.lang.String clientClass)
Registers a WMClient implementation for the specified
protocol. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String LOCAL
public static final java.lang.String J2EE_LOCAL
public static final java.lang.String RMI
public static final java.lang.String XML_RPC
Method Detail |
public static WMClient createClient() throws WMWorkflowException
obe.client.protocol
.
WMWorkflowException
- if an exception occurred when instantiating
the client.
java.lang.IllegalArgumentException
- if the protocol name is invalid.public static WMClient createClient(java.lang.String protocol) throws WMWorkflowException
protocol
- The protocol name, one of: LOCAL
,
J2EE_LOCAL
, RMI
, XML_RPC
, or some
implementation that was registered by a prior call to
registerClientClass(java.lang.String, java.lang.String)
.
WMWorkflowException
- if an exception occurred when instantiating
the client.
java.lang.IllegalArgumentException
- if the protocol name is invalid, or if
the registered class is not a valid WMClient implementation.public static void registerClientClass(java.lang.String protocol, java.lang.String clientClass)
WMClient
implementation for the specified
protocol.
protocol
- The protocol name.clientClass
- The fully qualified name of the implementing class,
which must implement WMClient
and have a public,
no-args constructor.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |