Package de.willuhn.jameica.services
Class RegistryService
- java.lang.Object
-
- de.willuhn.jameica.services.RegistryService
-
- All Implemented Interfaces:
de.willuhn.boot.Bootable
public class RegistryService extends java.lang.Object implements de.willuhn.boot.Bootable
Service, der die RMI-Registry startet.
-
-
Constructor Summary
Constructors Constructor Description RegistryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class[]
depends()
java.rmi.server.RMISocketFactory
getSocketFactory()
Liefert die aktuelle RMI-Socket-Factory.void
init(de.willuhn.boot.BootLoader loader, de.willuhn.boot.Bootable caller)
void
rebind(java.lang.String name, java.rmi.Remote remote)
Bindet ein Remote-Objekt an die Registry.void
shutdown()
void
unbind(java.lang.String name)
Entfernt ein Remote-Objekt aus der Registry.
-
-
-
Method Detail
-
depends
public java.lang.Class[] depends()
- Specified by:
depends
in interfacede.willuhn.boot.Bootable
- See Also:
Bootable.depends()
-
init
public void init(de.willuhn.boot.BootLoader loader, de.willuhn.boot.Bootable caller) throws de.willuhn.boot.SkipServiceException
- Specified by:
init
in interfacede.willuhn.boot.Bootable
- Throws:
de.willuhn.boot.SkipServiceException
- See Also:
Bootable.init(de.willuhn.boot.BootLoader, de.willuhn.boot.Bootable)
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfacede.willuhn.boot.Bootable
- See Also:
Bootable.shutdown()
-
rebind
public void rebind(java.lang.String name, java.rmi.Remote remote) throws java.lang.Exception
Bindet ein Remote-Objekt an die Registry.- Parameters:
name
- Lookup-Name.remote
- Instanz des Remote-Objektes.- Throws:
java.lang.Exception
-
unbind
public void unbind(java.lang.String name) throws java.lang.Exception
Entfernt ein Remote-Objekt aus der Registry.- Parameters:
name
- der Lookup-Name.- Throws:
java.lang.Exception
-
getSocketFactory
public java.rmi.server.RMISocketFactory getSocketFactory()
Liefert die aktuelle RMI-Socket-Factory.- Returns:
- aktuelle RMI-Socket-Factory.
-
-