Constructor and Description |
---|
Registry()
Create an empty registry
|
Registry(SimpleRMI.Registry reg)
Create a clone of an existing registry
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Class<T> clazz)
Returns the registered implementation of the given interface.
|
List<SimpleRMI.ServerListener> |
getServerListeners()
Returns the list of registered services that implement
SimpleRMI.ServerListener |
<T> void |
register(Class<T> clazz,
T object)
Registers the single implementation of the given service interface.
|
public Registry()
public Registry(SimpleRMI.Registry reg)
reg
- the registry to clonepublic <T> void register(Class<T> clazz, T object)
T
- the type of serviceclazz
- the service interfaceobject
- an object implementing the service interfacepublic <T> T get(Class<T> clazz)
T
- the service interfaceclazz
- the service interfacepublic List<SimpleRMI.ServerListener> getServerListeners()
SimpleRMI.ServerListener
SimpleRMI.ServerListener
Copyright © 2024 Actian Corporation. All rights reserved.