Module org.update4j

Class DefaultBootstrap

Object
DefaultBootstrap
All Implemented Interfaces:
Injectable, Delegate, Service

public class DefaultBootstrap
extends Object
implements Delegate
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultBootstrap()  
  • Method Summary

    Modifier and Type Method Description
    void main​(List<String> args)
    The bootstrap's main method, if you start it via the Bootstrap class or run update4j as a jar file.
    protected Reader openConnection​(URL url)  
    long version()  

    Methods inherited from class Object

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

  • Method Details

    • version

      public long version()
      Specified by:
      version in interface Service
    • main

      public void main​(List<String> args) throws Throwable
      Description copied from interface: Delegate
      The bootstrap's main method, if you start it via the Bootstrap class or run update4j as a jar file.

      This method is called after dependency injection was performed using any overload of Bootstrap.start() that takes an Injectable.

      To do any initialization before injection, do it in the constructor, but be aware that unless you specify the delegate with the --delegate flag, the constructor might be called even if this provider will not be used in the end. This happens as the service loading mechanism first loads all providers and then compares versions to use the one with the highest version.

      Specified by:
      main in interface Delegate
      Parameters:
      args - Command line arguments
      Throws:
      Throwable
    • openConnection

      protected Reader openConnection​(URL url) throws IOException
      Throws:
      IOException