public class DefaultNutsApplicationContext extends Object implements net.thevpc.nuts.NutsApplicationContext
| Constructor and Description |
|---|
DefaultNutsApplicationContext(net.thevpc.nuts.NutsWorkspace workspace,
net.thevpc.nuts.NutsSession session,
String[] args,
Class appClass,
String storeId,
long startTimeMillis) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(boolean skipUnsupported,
net.thevpc.nuts.NutsCommandLine commandLine)
configure the current command with the given arguments.
|
net.thevpc.nuts.NutsApplicationContext |
configure(boolean skipUnsupported,
String... args)
configure the current command with the given arguments.
|
boolean |
configureFirst(net.thevpc.nuts.NutsCommandLine cmd) |
void |
configureLast(net.thevpc.nuts.NutsCommandLine commandLine) |
net.thevpc.nuts.NutsSession |
createSession() |
Class |
getAppClass() |
net.thevpc.nuts.NutsId |
getAppId() |
net.thevpc.nuts.NutsVersion |
getAppPreviousVersion() |
net.thevpc.nuts.NutsPath |
getAppsFolder() |
net.thevpc.nuts.NutsVersion |
getAppVersion() |
String[] |
getArguments() |
net.thevpc.nuts.NutsCommandAutoComplete |
getAutoComplete() |
net.thevpc.nuts.NutsPath |
getCacheFolder() |
net.thevpc.nuts.NutsCommandLine |
getCommandLine() |
net.thevpc.nuts.NutsPath |
getConfigFolder() |
net.thevpc.nuts.NutsPath |
getFolder(net.thevpc.nuts.NutsStoreLocation location) |
net.thevpc.nuts.NutsPath |
getLibFolder() |
net.thevpc.nuts.NutsPath |
getLogFolder() |
net.thevpc.nuts.NutsApplicationMode |
getMode() |
String[] |
getModeArguments() |
net.thevpc.nuts.NutsPath |
getRunFolder() |
net.thevpc.nuts.NutsSession |
getSession() |
net.thevpc.nuts.NutsPath |
getSharedAppsFolder() |
net.thevpc.nuts.NutsPath |
getSharedConfigFolder() |
net.thevpc.nuts.NutsPath |
getSharedFolder(net.thevpc.nuts.NutsStoreLocation location) |
net.thevpc.nuts.NutsPath |
getSharedLibFolder() |
net.thevpc.nuts.NutsPath |
getSharedLogFolder() |
net.thevpc.nuts.NutsPath |
getSharedRunFolder() |
net.thevpc.nuts.NutsPath |
getSharedTempFolder() |
net.thevpc.nuts.NutsPath |
getSharedVarFolder() |
long |
getStartTimeMillis() |
net.thevpc.nuts.NutsAppStoreLocationResolver |
getStoreLocationResolver() |
net.thevpc.nuts.NutsPath |
getTempFolder() |
net.thevpc.nuts.NutsPath |
getVarFolder() |
net.thevpc.nuts.NutsPath |
getVersionFolder(net.thevpc.nuts.NutsStoreLocation location,
String version) |
net.thevpc.nuts.NutsWorkspace |
getWorkspace() |
boolean |
isExecMode() |
void |
printHelp() |
void |
processCommandLine(net.thevpc.nuts.NutsAppCmdProcessor commandLineProcessor) |
net.thevpc.nuts.NutsApplicationContext |
setAppId(net.thevpc.nuts.NutsId appId) |
net.thevpc.nuts.NutsApplicationContext |
setAppPreviousVersion(net.thevpc.nuts.NutsVersion previousVersion) |
net.thevpc.nuts.NutsApplicationContext |
setAppVersionStoreLocationSupplier(net.thevpc.nuts.NutsAppStoreLocationResolver appVersionStoreLocationSupplier) |
net.thevpc.nuts.NutsApplicationContext |
setArguments(String[] args) |
net.thevpc.nuts.NutsApplicationContext |
setFolder(net.thevpc.nuts.NutsStoreLocation location,
net.thevpc.nuts.NutsPath folder) |
net.thevpc.nuts.NutsApplicationContext |
setMode(net.thevpc.nuts.NutsApplicationMode mode) |
net.thevpc.nuts.NutsApplicationContext |
setModeArgs(String[] modeArgs) |
net.thevpc.nuts.NutsApplicationContext |
setSession(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsApplicationContext |
setSharedFolder(net.thevpc.nuts.NutsStoreLocation location,
net.thevpc.nuts.NutsPath folder) |
net.thevpc.nuts.NutsApplicationContext |
setStartTimeMillis(long startTimeMillis) |
net.thevpc.nuts.NutsApplicationContext |
setWorkspace(net.thevpc.nuts.NutsWorkspace workspace) |
public net.thevpc.nuts.NutsApplicationMode getMode()
getMode in interface net.thevpc.nuts.NutsApplicationContextpublic String[] getModeArguments()
getModeArguments in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsCommandAutoComplete getAutoComplete()
getAutoComplete in interface net.thevpc.nuts.NutsApplicationContextpublic final net.thevpc.nuts.NutsApplicationContext configure(boolean skipUnsupported,
String... args)
NutsCommandLineConfigurable.configure(boolean, java.lang.String...)
to help return a more specific return type;configure in interface net.thevpc.nuts.NutsApplicationContextconfigure in interface net.thevpc.nuts.NutsCommandLineConfigurableargs - argument to configure withthis instancepublic void configureLast(net.thevpc.nuts.NutsCommandLine commandLine)
configureLast in interface net.thevpc.nuts.NutsApplicationContextconfigureLast in interface net.thevpc.nuts.NutsCommandLineConfigurablepublic void printHelp()
printHelp in interface net.thevpc.nuts.NutsApplicationContextpublic Class getAppClass()
getAppClass in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsWorkspace getWorkspace()
getWorkspace in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsSession createSession()
createSession in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setSession(net.thevpc.nuts.NutsSession session)
setSession in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getAppsFolder()
getAppsFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getConfigFolder()
getConfigFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getLogFolder()
getLogFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getTempFolder()
getTempFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getVarFolder()
getVarFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getLibFolder()
getLibFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getRunFolder()
getRunFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getCacheFolder()
getCacheFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getVersionFolder(net.thevpc.nuts.NutsStoreLocation location,
String version)
getVersionFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getSharedAppsFolder()
getSharedAppsFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getSharedConfigFolder()
getSharedConfigFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getSharedLogFolder()
getSharedLogFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getSharedTempFolder()
getSharedTempFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getSharedVarFolder()
getSharedVarFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getSharedLibFolder()
getSharedLibFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getSharedRunFolder()
getSharedRunFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getSharedFolder(net.thevpc.nuts.NutsStoreLocation location)
getSharedFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsId getAppId()
getAppId in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsVersion getAppVersion()
getAppVersion in interface net.thevpc.nuts.NutsApplicationContextpublic String[] getArguments()
getArguments in interface net.thevpc.nuts.NutsApplicationContextpublic long getStartTimeMillis()
getStartTimeMillis in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsVersion getAppPreviousVersion()
getAppPreviousVersion in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsCommandLine getCommandLine()
getCommandLine in interface net.thevpc.nuts.NutsApplicationContextpublic void processCommandLine(net.thevpc.nuts.NutsAppCmdProcessor commandLineProcessor)
processCommandLine in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsPath getFolder(net.thevpc.nuts.NutsStoreLocation location)
getFolder in interface net.thevpc.nuts.NutsApplicationContextpublic boolean isExecMode()
isExecMode in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsAppStoreLocationResolver getStoreLocationResolver()
getStoreLocationResolver in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setAppVersionStoreLocationSupplier(net.thevpc.nuts.NutsAppStoreLocationResolver appVersionStoreLocationSupplier)
setAppVersionStoreLocationSupplier in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setMode(net.thevpc.nuts.NutsApplicationMode mode)
public net.thevpc.nuts.NutsApplicationContext setModeArgs(String[] modeArgs)
public final boolean configure(boolean skipUnsupported,
net.thevpc.nuts.NutsCommandLine commandLine)
configure in interface net.thevpc.nuts.NutsCommandLineConfigurableskipUnsupported - when true, all unsupported options are skipped
silentlycommandLine - arguments to configure withthis instancepublic boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmd)
configureFirst in interface net.thevpc.nuts.NutsCommandLineConfigurablepublic net.thevpc.nuts.NutsApplicationContext setWorkspace(net.thevpc.nuts.NutsWorkspace workspace)
public net.thevpc.nuts.NutsApplicationContext setFolder(net.thevpc.nuts.NutsStoreLocation location,
net.thevpc.nuts.NutsPath folder)
public net.thevpc.nuts.NutsApplicationContext setSharedFolder(net.thevpc.nuts.NutsStoreLocation location,
net.thevpc.nuts.NutsPath folder)
public net.thevpc.nuts.NutsApplicationContext setAppId(net.thevpc.nuts.NutsId appId)
public net.thevpc.nuts.NutsApplicationContext setArguments(String[] args)
public net.thevpc.nuts.NutsApplicationContext setStartTimeMillis(long startTimeMillis)
public net.thevpc.nuts.NutsApplicationContext setAppPreviousVersion(net.thevpc.nuts.NutsVersion previousVersion)
Copyright © 2022 vpc open source initiative. All rights reserved.