public final class Factory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
<T> Informer<T> |
createInformer(Scope scope)
Creates a new informer instance.
|
<T> Informer<T> |
createInformer(Scope scope,
java.lang.Class<?> type)
Creates a new informer instance.
|
<T> Informer<T> |
createInformer(java.lang.String scope)
Creates a new informer instance.
|
<T> Informer<T> |
createInformer(java.lang.String scope,
java.lang.Class<?> type)
Creates a new informer instance.
|
Listener |
createListener(Scope scope)
Creates a new listener instance.
|
Listener |
createListener(java.lang.String scope)
Creates a new listener instance.
|
LocalServer |
createLocalServer(Scope scope)
Creates a new LocalServer object which exposes methods under the scope @a
scope.
|
LocalServer |
createLocalServer(java.lang.String scope)
Creates a new LocalServer object which exposes methods under the scope @a
scope.
|
RemoteServer |
createRemoteServer(Scope scope)
Creates a new RemoteServer object which is suitable for calling methods
provided by a remote server under the scope @a scope.
|
RemoteServer |
createRemoteServer(Scope scope,
double timeout)
Creates a new RemoteServer object which is suitable for calling methods
provided by a remote server under the scope @a scope.
|
RemoteServer |
createRemoteServer(java.lang.String scope)
Creates a new RemoteServer object which is suitable for calling methods
provided by a remote server under the scope @a scope.
|
RemoteServer |
createRemoteServer(java.lang.String scope,
double timeout)
Creates a new RemoteServer object which is suitable for calling methods
provided by a remote server under the scope @a scope.
|
static Factory |
getInstance()
Returns the one and only instance of this class.
|
public static Factory getInstance()
public <T> Informer<T> createInformer(Scope scope, java.lang.Class<?> type)
T
- type of the data sent by this informerscope
- scope of the informertype
- type identifier of the informerpublic <T> Informer<T> createInformer(java.lang.String scope, java.lang.Class<?> type)
T
- type of the data sent by this informerscope
- scope of the informertype
- type identifier of the informerpublic <T> Informer<T> createInformer(Scope scope)
T
- type of the data sent by this informerscope
- scope of the informerpublic <T> Informer<T> createInformer(java.lang.String scope)
T
- type of the data sent by this informerscope
- scope of the informerpublic Listener createListener(Scope scope)
scope
- scope of the listenerpublic Listener createListener(java.lang.String scope)
scope
- scope of the listenerpublic LocalServer createLocalServer(Scope scope)
scope
- The scope under which methods of the LocalServer object should
be exposed.public LocalServer createLocalServer(java.lang.String scope)
scope
- The scope under which methods of the LocalServer object should
be exposed.public RemoteServer createRemoteServer(Scope scope)
scope
- The scope under which a remote server provides its methods.public RemoteServer createRemoteServer(java.lang.String scope)
scope
- The scope under which a remote server provides its methods.public RemoteServer createRemoteServer(Scope scope, double timeout)
scope
- The scope under which a remote server provides its methods.timeout
- The amount of seconds methods calls should wait for their
replies to arrive before failing.public RemoteServer createRemoteServer(java.lang.String scope, double timeout)
scope
- The scope under which a remote server provides its methods.timeout
- The amount of seconds methods calls should wait for their
replies to arrive before failing.