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.BootableService, 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.RMISocketFactorygetSocketFactory()Liefert die aktuelle RMI-Socket-Factory.voidinit(de.willuhn.boot.BootLoader loader, de.willuhn.boot.Bootable caller)voidrebind(java.lang.String name, java.rmi.Remote remote)Bindet ein Remote-Objekt an die Registry.voidshutdown()voidunbind(java.lang.String name)Entfernt ein Remote-Objekt aus der Registry.
-
-
-
Method Detail
-
depends
public java.lang.Class[] depends()
- Specified by:
dependsin 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:
initin 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:
shutdownin interfacede.willuhn.boot.Bootable- See Also:
Bootable.shutdown()
-
rebind
public void rebind(java.lang.String name, java.rmi.Remote remote) throws java.lang.ExceptionBindet 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.ExceptionEntfernt 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.
-
-