Class DeployService

  • All Implemented Interfaces:
    de.willuhn.boot.Bootable

    public class DeployService
    extends java.lang.Object
    implements de.willuhn.boot.Bootable
    Uebernimmt das Deployen der Plugins.
    • Constructor Summary

      Constructors 
      Constructor Description
      DeployService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class[] depends()  
      void deploy​(ZippedPlugin plugin, PluginSource source, de.willuhn.util.ProgressMonitor monitor)
      Deployed das angegebene Plugin.
      void deploy​(ZippedPlugin plugin, PluginSource source, de.willuhn.util.ProgressMonitor monitor, boolean multi)
      Deployed das angegebene Plugin.
      void init​(de.willuhn.boot.BootLoader loader, de.willuhn.boot.Bootable caller)  
      void shutdown()  
      void update​(Manifest current, ZippedPlugin plugin, de.willuhn.util.ProgressMonitor monitor)
      Aktualisiert ein bereits installiertes Plugin.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DeployService

        public DeployService()
    • Method Detail

      • depends

        public java.lang.Class[] depends()
        Specified by:
        depends in interface de.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 interface de.willuhn.boot.Bootable
        Throws:
        de.willuhn.boot.SkipServiceException
        See Also:
        Bootable.init(de.willuhn.boot.BootLoader, de.willuhn.boot.Bootable)
      • update

        public void update​(Manifest current,
                           ZippedPlugin plugin,
                           de.willuhn.util.ProgressMonitor monitor)
        Aktualisiert ein bereits installiertes Plugin. Markiert das vorherige Plugin als geloescht und kopiert das neue Plugins ins update-Dir.
        Parameters:
        current - das installierte Plugin.
        plugin - das zu aktualisierende Plugin.
        monitor - der Progressmonitor zur Anzeige des Fortschrittes.
      • deploy

        public void deploy​(ZippedPlugin plugin,
                           PluginSource source,
                           de.willuhn.util.ProgressMonitor monitor)
        Deployed das angegebene Plugin.
        Parameters:
        plugin - das Plugin.
        source - die Installations-Quelle, in der das Plugin entpackt werden soll. Wenn keine angegeben ist, wird im User-Plugin-Ordner deployed.
        monitor - der Progressmonitor zur Anzeige des Fortschrittes.
      • deploy

        public void deploy​(ZippedPlugin plugin,
                           PluginSource source,
                           de.willuhn.util.ProgressMonitor monitor,
                           boolean multi)
        Deployed das angegebene Plugin.
        Parameters:
        plugin - das Plugin.
        source - die Installations-Quelle, in der das Plugin entpackt werden soll. Wenn keine angegeben ist, wird im User-Plugin-Ordner deployed.
        monitor - der Progressmonitor zur Anzeige des Fortschrittes.
        multi - true, wenn mehrere Plugins in Folge installiert werden.
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface de.willuhn.boot.Bootable
        See Also:
        Bootable.shutdown()