Object
DefaultBootstrap
- All Implemented Interfaces:
Injectable
,Delegate
,Service
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCert()
getLocal()
protected Configuration
getLocalConfig(boolean ignoreFileNotFound)
protected Configuration
boolean
boolean
boolean
boolean
protected void
void
The bootstrap's main method, if you start it via theBootstrap
class or run update4j as a jar file.protected Reader
openConnection(URL url)
protected void
protected void
syncLocal(Configuration remoteConfig)
protected void
long
version()
-
Constructor Details
-
DefaultBootstrap
public DefaultBootstrap()
-
-
Method Details
-
version
public long version() -
getRemote
-
getLocal
-
getArchivePath
-
getCert
-
isSyncLocal
public boolean isSyncLocal() -
isLaunchFirst
public boolean isLaunchFirst() -
isStopOnUpdateError
public boolean isStopOnUpdateError() -
isSingleInstance
public boolean isSingleInstance() -
getPublicKey
-
getBusinessArgs
-
main
Description copied from interface:Delegate
The bootstrap's main method, if you start it via theBootstrap
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 anInjectable
.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. -
parseArgs
-
updateFirst
- Throws:
Throwable
-
launchFirst
- Throws:
Throwable
-
openConnection
- Throws:
IOException
-
getLocalConfig
-
getRemoteConfig
-
syncLocal
-