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) |
Class |
getAppClass() |
net.thevpc.nuts.NutsId |
getAppId() |
net.thevpc.nuts.NutsVersion |
getAppPreviousVersion() |
String |
getAppsFolder() |
net.thevpc.nuts.NutsVersion |
getAppVersion() |
net.thevpc.nuts.NutsAppVersionStoreLocationSupplier |
getAppVersionStoreLocationSupplier() |
String[] |
getArguments() |
net.thevpc.nuts.NutsCommandAutoComplete |
getAutoComplete() |
String |
getCacheFolder() |
net.thevpc.nuts.NutsCommandLine |
getCommandLine() |
String |
getConfigFolder() |
String |
getFolder(net.thevpc.nuts.NutsStoreLocation location) |
String |
getLibFolder() |
String |
getLogFolder() |
net.thevpc.nuts.NutsApplicationMode |
getMode() |
String[] |
getModeArguments() |
String |
getRunFolder() |
net.thevpc.nuts.NutsSession |
getSession() |
String |
getSharedAppsFolder() |
String |
getSharedConfigFolder() |
String |
getSharedFolder(net.thevpc.nuts.NutsStoreLocation location) |
String |
getSharedLibFolder() |
String |
getSharedLogFolder() |
String |
getSharedRunFolder() |
String |
getSharedTempFolder() |
String |
getSharedVarFolder() |
long |
getStartTimeMillis() |
String |
getTempFolder() |
String |
getVarFolder() |
String |
getVersionFolderFolder(net.thevpc.nuts.NutsStoreLocation location,
String version) |
net.thevpc.nuts.NutsWorkspace |
getWorkspace() |
boolean |
isExecMode() |
void |
printHelp() |
void |
processCommandLine(net.thevpc.nuts.NutsCommandLineProcessor 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.NutsAppVersionStoreLocationSupplier appVersionStoreLocationSupplier) |
net.thevpc.nuts.NutsApplicationContext |
setArgs(String[] args) |
net.thevpc.nuts.NutsApplicationContext |
setFolder(net.thevpc.nuts.NutsStoreLocation location,
String 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,
String 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 net.thevpc.nuts.NutsApplicationContext setMode(net.thevpc.nuts.NutsApplicationMode mode)
public String[] getModeArguments()
getModeArguments in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setModeArgs(String[] modeArgs)
public 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 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 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.NutsApplicationContext setWorkspace(net.thevpc.nuts.NutsWorkspace workspace)
public net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setSession(net.thevpc.nuts.NutsSession session)
setSession in interface net.thevpc.nuts.NutsApplicationContextpublic String getAppsFolder()
getAppsFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getConfigFolder()
getConfigFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getLogFolder()
getLogFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getTempFolder()
getTempFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getVarFolder()
getVarFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getLibFolder()
getLibFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getRunFolder()
getRunFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getCacheFolder()
getCacheFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getFolder(net.thevpc.nuts.NutsStoreLocation location)
getFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getVersionFolderFolder(net.thevpc.nuts.NutsStoreLocation location, String version)
getVersionFolderFolder in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setFolder(net.thevpc.nuts.NutsStoreLocation location,
String folder)
public net.thevpc.nuts.NutsApplicationContext setSharedFolder(net.thevpc.nuts.NutsStoreLocation location,
String folder)
public String getSharedAppsFolder()
getSharedAppsFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getSharedConfigFolder()
getSharedConfigFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getSharedLogFolder()
getSharedLogFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getSharedTempFolder()
getSharedTempFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getSharedVarFolder()
getSharedVarFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getSharedLibFolder()
getSharedLibFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String getSharedRunFolder()
getSharedRunFolder in interface net.thevpc.nuts.NutsApplicationContextpublic String 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 net.thevpc.nuts.NutsApplicationContext setAppId(net.thevpc.nuts.NutsId appId)
public String[] getArguments()
getArguments in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setArgs(String[] args)
public net.thevpc.nuts.NutsCommandLine getCommandLine()
getCommandLine in interface net.thevpc.nuts.NutsApplicationContextpublic long getStartTimeMillis()
getStartTimeMillis in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setStartTimeMillis(long startTimeMillis)
public net.thevpc.nuts.NutsVersion getAppPreviousVersion()
getAppPreviousVersion in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setAppPreviousVersion(net.thevpc.nuts.NutsVersion previousVersion)
public boolean isExecMode()
isExecMode in interface net.thevpc.nuts.NutsApplicationContextpublic void processCommandLine(net.thevpc.nuts.NutsCommandLineProcessor commandLineProcessor)
processCommandLine in interface net.thevpc.nuts.NutsApplicationContextpublic void configureLast(net.thevpc.nuts.NutsCommandLine commandLine)
configureLast in interface net.thevpc.nuts.NutsApplicationContextconfigureLast in interface net.thevpc.nuts.NutsCommandLineConfigurablepublic net.thevpc.nuts.NutsAppVersionStoreLocationSupplier getAppVersionStoreLocationSupplier()
getAppVersionStoreLocationSupplier in interface net.thevpc.nuts.NutsApplicationContextpublic net.thevpc.nuts.NutsApplicationContext setAppVersionStoreLocationSupplier(net.thevpc.nuts.NutsAppVersionStoreLocationSupplier appVersionStoreLocationSupplier)
setAppVersionStoreLocationSupplier in interface net.thevpc.nuts.NutsApplicationContextCopyright © 2021 vpc open source initiative. All rights reserved.