|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
HostServiceRegistry1
@ThreadSafe public final class HostServiceRegistry1
Service registry implementation. The single instance of HostServiceRegistry1 is available via HostServiceRegistry1.i().
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface HostServiceRegistry |
---|
HostServiceRegistry.UniqueID, HostServiceRegistry.X |
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
HostServiceRegistry1()
Creates the single instance of HostServiceRegistry1; makes it available via i(); and binds it in the RMI boot-registry. |
Method Summary | ||
---|---|---|
|
addService(Class<S> serviceInterface,
S serviceInstance)
Adds a new service to the registry. |
|
File |
allInOneJar()
Returns the file path of an all-in-one textbender JAR, suitable as a codebase for applets and applications. |
|
|
getService(Class<S> serviceInterface)
Returns an instance of the specified service. |
|
static HostServiceRegistry1 |
i()
The single instance of HostServiceRegistry1, or null if there is none. |
|
HostServiceRegistry.UniqueID |
nextUniqueID()
Returns the next unique identifier. |
|
URL |
resolveJarURL()
Deprecated. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
HostServiceRegistry1() throws NotBoundException, RemoteException
NotBoundException
- if an RMI exception prevents binding
RemoteException
- if the instance cannot be created or boundMethod Detail |
---|
public static HostServiceRegistry1 i()
public <S extends Remote> void addService(Class<S> serviceInterface, S serviceInstance)
serviceInterface
- per getService()serviceInstance
- that actually implements the interface
IllegalStateException
- if a service was already added for that serviceInterfacepublic File allInOneJar() throws IOException
HostServiceRegistry
allInOneJar
in interface HostServiceRegistry
IOException
- if the JAR is unavailable,
or the JAR file cannot be createdBootApplet
public <S extends Remote> S getService(Class<S> serviceInterface) throws AccessException, UnknownHostException
HostServiceRegistry
getService
in interface HostServiceRegistry
serviceInterface
- specifying the service
AccessException
- if the caller is from another host.
Services are provided only to the local host.
UnknownHostException
public HostServiceRegistry.UniqueID nextUniqueID()
HostServiceRegistry
nextUniqueID
in interface HostServiceRegistry
@Deprecated public URL resolveJarURL() throws IOException
HostServiceRegistry
resolveJarURL
in interface HostServiceRegistry
IOException
HostServiceRegistry.allInOneJar()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |