|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.core.identity.Namespace
org.eclipse.ecf.remoteservice.rpc.identity.RpcNamespace
public class RpcNamespace
This class represents a Namespace for RpcClientContainers.
| Field Summary | |
|---|---|
static java.lang.String |
NAME
The name of this namespace. |
static java.lang.String |
SCHEME
The scheme of this namespace. |
| Fields inherited from class org.eclipse.ecf.core.identity.Namespace |
|---|
SCHEME_SEPARATOR |
| Constructor Summary | |
|---|---|
RpcNamespace()
|
|
RpcNamespace(java.lang.String name,
java.lang.String desc)
|
|
| Method Summary | |
|---|---|
ID |
createInstance(java.lang.Object[] parameters)
Creates an instance of an RPCD. |
java.lang.String |
getScheme()
Get the primary scheme associated with this namespace. |
java.lang.Class[][] |
getSupportedParameterTypes()
Get the supported parameter types for IDs created via subsequent calls to Namespace.createInstance(Object[]). |
| Methods inherited from class org.eclipse.ecf.core.identity.Namespace |
|---|
equals, getAdapter, getCompareToForObject, getDescription, getHashCodeForID, getInitStringFromExternalForm, getName, getNameForID, getSupportedSchemes, hashCode, initialize, testIDEquals, toExternalForm, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAME
public static final java.lang.String SCHEME
| Constructor Detail |
|---|
public RpcNamespace()
public RpcNamespace(java.lang.String name,
java.lang.String desc)
| Method Detail |
|---|
public ID createInstance(java.lang.Object[] parameters)
throws IDCreateException
RPCD. The parameters must contain specific information.
createInstance in class Namespaceparameters - a collection of attributes to call the right constructor on RpcId.
RpcId. Will not be null.
IDCreateException - if construction failspublic java.lang.Class[][] getSupportedParameterTypes()
NamespaceNamespace.createInstance(Object[]). Callers may use this method to
determine the available parameter types, and then create and pass in
conforming Object arrays to to Namespace.createInstance(Object[]).
An empty two-dimensional array (new Class[0][0]) is the default returned by this abstract superclass. This means that the Object [] passed to
Namespace.createInstance(Object[]) will be ignored.
Subsclasses should override this method to specify the parameters that they will accept in calls to
Namespace.createInstance(Object[]). The rows
of the returned Class array are the acceptable types for a given
invocation of createInstance.
Consider the following example:
public Class[][] getSupportedParameterTypes() {
return new Class[][] { { String.class }, { String.class, String.class } };
}
The above means that there are two acceptable values for the Object []
passed into Namespace.createInstance(Object[]): 1) a single String, and 2)
two Strings. These would therefore be acceptable as input to
createInstance:
ID newID1 = namespace.createInstance(new Object[] { "Hello" });
ID newID2 = namespace.createInstance(new Object[] { "Hello", "There"}};
getSupportedParameterTypes in class NamespaceNamespace.createInstance(Object[]). If zero-length
Class arrays are returned (i.e. Class[0][0]), then Object []
parameters to Namespace.createInstance(Object[]) will be ignored.public java.lang.String getScheme()
Namespacenull scheme
identifier. Note that the returned scheme should not contain the
Namespace.SCHEME_SEPARATOR (\":\").
getScheme in class Namespacenull.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||