public class DefaultNWorkspaceConfigModel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,net.thevpc.nuts.spi.NDependencySolverFactory> |
dependencySolvers |
protected NWorkspaceConfigApi |
storeModelApi |
protected NWorkspaceConfigBoot |
storeModelBoot |
protected NWorkspaceConfigMain |
storeModelMain |
protected NWorkspaceConfigRuntime |
storeModelRuntime |
protected NWorkspaceConfigSecurity |
storeModelSecurity |
| Constructor and Description |
|---|
DefaultNWorkspaceConfigModel(DefaultNWorkspace workspace) |
| Modifier and Type | Method and Description |
|---|---|
protected net.thevpc.nuts.log.NLog |
_LOG() |
protected net.thevpc.nuts.log.NLogOp |
_LOGOP() |
void |
addPathFactory(net.thevpc.nuts.spi.NPathFactorySPI f) |
void |
collect(net.thevpc.nuts.NClassLoaderNode n,
LinkedHashMap<net.thevpc.nuts.NId,net.thevpc.nuts.NClassLoaderNode> deps) |
net.thevpc.nuts.security.NAuthenticationAgent |
createAuthenticationAgent(String authenticationAgent) |
net.thevpc.nuts.spi.NDependencySolver |
createDependencySolver(String name) |
net.thevpc.nuts.NId |
createSdkId(String type,
String version) |
net.thevpc.nuts.io.NTerminal |
createTerminal() |
net.thevpc.nuts.io.NTerminal |
createTerminal(InputStream in,
net.thevpc.nuts.io.NPrintStream out,
net.thevpc.nuts.io.NPrintStream err) |
DefaultNWorkspaceCurrentConfig |
current() |
ExecutorService |
executorService() |
net.thevpc.nuts.runtime.standalone.workspace.config.DefaultNWorkspaceConfigModel.NBootDef |
fetchBootDef(net.thevpc.nuts.NId id,
boolean content) |
void |
fireConfigurationChanged(String configName,
ConfigEventType t) |
Set<String> |
getAvailableArchetypes() |
ClassLoader |
getBootClassLoader() |
List<URL> |
getBootClassWorldURLs() |
NWorkspaceConfigBoot.ExtensionConfig |
getBootExtension(String value) |
DefaultNBootModel |
getBootModel() |
List<String> |
getBootRepositories() |
net.thevpc.nuts.NBootOptions |
getBootUserOptions() |
Map<String,String> |
getConfigMap() |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.util.NLiteral> |
getConfigProperty(String property) |
Duration |
getCreateDuration() |
Instant |
getCreationFinishTime() |
Instant |
getCreationStartTime() |
DefaultNWorkspaceCurrentConfig |
getCurrentConfig() |
List<net.thevpc.nuts.NAddRepositoryOptions> |
getDefaultRepositories() |
List<String> |
getDependencySolverNames() |
net.thevpc.nuts.spi.NDependencySolverFactory[] |
getDependencySolvers() |
net.thevpc.nuts.spi.NIndexStoreFactory |
getIndexStoreClientFactory() |
String |
getJavaCommand() |
String |
getJavaOptions() |
net.thevpc.nuts.spi.NPathFactorySPI[] |
getPathFactories() |
net.thevpc.nuts.io.NPath |
getRepositoriesRoot() |
net.thevpc.nuts.NUserConfig |
getSecurity(String id) |
NWorkspaceConfigApi |
getStoredConfigApi() |
NWorkspaceConfigBoot |
getStoredConfigBoot() |
NWorkspaceConfigMain |
getStoredConfigMain() |
NWorkspaceConfigRuntime |
getStoredConfigRuntime() |
NWorkspaceConfigSecurity |
getStoredConfigSecurity() |
NWorkspaceConfigApi |
getStoreModelApi() |
NWorkspaceConfigBoot |
getStoreModelBoot() |
NWorkspaceConfigMain |
getStoreModelMain() |
NWorkspaceConfigRuntime |
getStoreModelRuntime() |
NWorkspaceConfigSecurity |
getStoreModelSecurity() |
net.thevpc.nuts.io.NPath |
getTempRepositoriesRoot() |
net.thevpc.nuts.io.NTerminal |
getTerminal() |
net.thevpc.nuts.NUserConfig |
getUser(String userId) |
net.thevpc.nuts.NUserConfig[] |
getUsers() |
net.thevpc.nuts.NWorkspace |
getWorkspace() |
void |
installBootIds() |
void |
invalidateStoreModelMain() |
boolean |
isConfigurationChanged() |
boolean |
isExcludedExtension(String extensionId,
net.thevpc.nuts.NWorkspaceOptions options) |
boolean |
isReadOnly() |
boolean |
isSecure() |
boolean |
isSupportedRepositoryType(String repositoryType) |
boolean |
isSystem() |
boolean |
loadWorkspace() |
void |
onExtensionsPrepared() |
void |
onNewComponent(Class componentType) |
void |
onPostUpdateConfig(String confName) |
void |
onPreUpdateConfig(String confName) |
void |
prepareBootClassPathConf(net.thevpc.nuts.NIdType idType,
net.thevpc.nuts.NId id,
net.thevpc.nuts.NId forId,
net.thevpc.nuts.NId forceRuntimeId,
boolean force,
boolean processDependencies) |
net.thevpc.nuts.runtime.standalone.workspace.config.DefaultNWorkspaceConfigModel.NBootDef |
prepareBootClassPathJar(net.thevpc.nuts.NId id,
net.thevpc.nuts.NId forId,
net.thevpc.nuts.NId forceRuntimeId,
boolean processDependencies) |
void |
removePathFactory(net.thevpc.nuts.spi.NPathFactorySPI f) |
void |
removeUser(String userId) |
net.thevpc.nuts.io.NPath |
resolve(String path,
ClassLoader classLoader) |
net.thevpc.nuts.spi.NRepositoryLocation[] |
resolveBootRepositoriesBootSelectionArray() |
net.thevpc.nuts.spi.NRepositorySelectorList |
resolveBootRepositoriesList() |
net.thevpc.nuts.io.NPath |
resolveRepositoryPath(net.thevpc.nuts.io.NPath repositoryLocation) |
boolean |
save() |
boolean |
save(boolean force) |
void |
setBootApiVersion(net.thevpc.nuts.NVersion value) |
void |
setBootExtension(String value,
String dependencies,
boolean enabled) |
void |
setBootRepositories(List<String> value) |
void |
setBootRuntimeDependencies(String dependencies) |
void |
setBootRuntimeId(net.thevpc.nuts.NId value,
String dependencies) |
void |
setConfigApi(NWorkspaceConfigApi config) |
void |
setConfigApi(NWorkspaceConfigApi config,
boolean fire) |
void |
setConfigBoot(NWorkspaceConfigBoot config) |
void |
setConfigMain(NWorkspaceConfigMain config) |
void |
setConfigProperty(String property,
String value) |
void |
setConfigRuntime(NWorkspaceConfigRuntime config) |
void |
setConfigRuntime(NWorkspaceConfigRuntime config,
boolean fire) |
void |
setConfigSecurity(NWorkspaceConfigSecurity config) |
void |
setCurrentConfig(DefaultNWorkspaceCurrentConfig currentConfig) |
void |
setEndCreateTime(Instant endCreateTime) |
void |
setExtraBootExtensionId(net.thevpc.nuts.NId apiId,
net.thevpc.nuts.NId extensionId,
List<net.thevpc.nuts.NDependency> deps) |
void |
setExtraBootRuntimeId(net.thevpc.nuts.NId apiId,
net.thevpc.nuts.NId runtimeId,
List<net.thevpc.nuts.NDependency> deps) |
void |
setSecure(boolean secure) |
void |
setStartCreateTime(Instant startCreateTime) |
void |
setTerminal(net.thevpc.nuts.io.NTerminal terminal) |
void |
setUser(net.thevpc.nuts.NUserConfig config) |
void |
setUsers(net.thevpc.nuts.NUserConfig[] users) |
net.thevpc.nuts.NWorkspaceStoredConfig |
stored() |
Map<String,String> |
sysEnv() |
void |
sysEnvPop() |
Map<String,String> |
sysEnvPush(Map<String,String> env) |
String |
toString() |
protected NWorkspaceConfigBoot storeModelBoot
protected NWorkspaceConfigApi storeModelApi
protected NWorkspaceConfigRuntime storeModelRuntime
protected NWorkspaceConfigSecurity storeModelSecurity
protected NWorkspaceConfigMain storeModelMain
public DefaultNWorkspaceConfigModel(DefaultNWorkspace workspace)
public void sysEnvPop()
public void onNewComponent(Class componentType)
protected net.thevpc.nuts.log.NLogOp _LOGOP()
protected net.thevpc.nuts.log.NLog _LOG()
public DefaultNWorkspaceCurrentConfig getCurrentConfig()
public void setCurrentConfig(DefaultNWorkspaceCurrentConfig currentConfig)
public net.thevpc.nuts.NWorkspaceStoredConfig stored()
public ClassLoader getBootClassLoader()
public boolean isReadOnly()
public boolean save(boolean force)
public boolean save()
public boolean isExcludedExtension(String extensionId, net.thevpc.nuts.NWorkspaceOptions options)
public net.thevpc.nuts.NBootOptions getBootUserOptions()
public boolean isSupportedRepositoryType(String repositoryType)
public List<net.thevpc.nuts.NAddRepositoryOptions> getDefaultRepositories()
public net.thevpc.nuts.io.NPath resolveRepositoryPath(net.thevpc.nuts.io.NPath repositoryLocation)
public net.thevpc.nuts.spi.NIndexStoreFactory getIndexStoreClientFactory()
public String getJavaCommand()
public String getJavaOptions()
public boolean isSystem()
public Instant getCreationStartTime()
public Instant getCreationFinishTime()
public Duration getCreateDuration()
public NWorkspaceConfigMain getStoreModelMain()
public DefaultNWorkspaceCurrentConfig current()
public void setStartCreateTime(Instant startCreateTime)
public void setConfigBoot(NWorkspaceConfigBoot config)
public void setConfigApi(NWorkspaceConfigApi config)
public void setConfigRuntime(NWorkspaceConfigRuntime config)
public void setConfigSecurity(NWorkspaceConfigSecurity config)
public void setConfigMain(NWorkspaceConfigMain config)
public void setEndCreateTime(Instant endCreateTime)
public void installBootIds()
public boolean isConfigurationChanged()
public boolean loadWorkspace()
public void setBootApiVersion(net.thevpc.nuts.NVersion value)
public void setExtraBootExtensionId(net.thevpc.nuts.NId apiId,
net.thevpc.nuts.NId extensionId,
List<net.thevpc.nuts.NDependency> deps)
public void setExtraBootRuntimeId(net.thevpc.nuts.NId apiId,
net.thevpc.nuts.NId runtimeId,
List<net.thevpc.nuts.NDependency> deps)
public void setBootRuntimeId(net.thevpc.nuts.NId value,
String dependencies)
public void setBootRuntimeDependencies(String dependencies)
public NWorkspaceConfigBoot.ExtensionConfig getBootExtension(String value)
public net.thevpc.nuts.NUserConfig getUser(String userId)
public net.thevpc.nuts.NUserConfig[] getUsers()
public void setUser(net.thevpc.nuts.NUserConfig config)
public void removeUser(String userId)
public void setSecure(boolean secure)
public void fireConfigurationChanged(String configName, ConfigEventType t)
public NWorkspaceConfigApi getStoredConfigApi()
public NWorkspaceConfigBoot getStoredConfigBoot()
public NWorkspaceConfigSecurity getStoredConfigSecurity()
public NWorkspaceConfigMain getStoredConfigMain()
public net.thevpc.nuts.NWorkspace getWorkspace()
public net.thevpc.nuts.spi.NDependencySolver createDependencySolver(String name)
public net.thevpc.nuts.spi.NDependencySolverFactory[] getDependencySolvers()
public net.thevpc.nuts.io.NPath getRepositoriesRoot()
public net.thevpc.nuts.io.NPath getTempRepositoriesRoot()
public net.thevpc.nuts.security.NAuthenticationAgent createAuthenticationAgent(String authenticationAgent)
public void setUsers(net.thevpc.nuts.NUserConfig[] users)
public NWorkspaceConfigRuntime getStoredConfigRuntime()
public void onExtensionsPrepared()
public void setConfigApi(NWorkspaceConfigApi config, boolean fire)
public void setConfigRuntime(NWorkspaceConfigRuntime config, boolean fire)
public void collect(net.thevpc.nuts.NClassLoaderNode n,
LinkedHashMap<net.thevpc.nuts.NId,net.thevpc.nuts.NClassLoaderNode> deps)
public net.thevpc.nuts.runtime.standalone.workspace.config.DefaultNWorkspaceConfigModel.NBootDef fetchBootDef(net.thevpc.nuts.NId id,
boolean content)
public void prepareBootClassPathConf(net.thevpc.nuts.NIdType idType,
net.thevpc.nuts.NId id,
net.thevpc.nuts.NId forId,
net.thevpc.nuts.NId forceRuntimeId,
boolean force,
boolean processDependencies)
public net.thevpc.nuts.runtime.standalone.workspace.config.DefaultNWorkspaceConfigModel.NBootDef prepareBootClassPathJar(net.thevpc.nuts.NId id,
net.thevpc.nuts.NId forId,
net.thevpc.nuts.NId forceRuntimeId,
boolean processDependencies)
public void onPreUpdateConfig(String confName)
public void onPostUpdateConfig(String confName)
public net.thevpc.nuts.NUserConfig getSecurity(String id)
public net.thevpc.nuts.spi.NRepositoryLocation[] resolveBootRepositoriesBootSelectionArray()
public net.thevpc.nuts.spi.NRepositorySelectorList resolveBootRepositoriesList()
public NWorkspaceConfigBoot getStoreModelBoot()
public NWorkspaceConfigApi getStoreModelApi()
public NWorkspaceConfigRuntime getStoreModelRuntime()
public NWorkspaceConfigSecurity getStoreModelSecurity()
public ExecutorService executorService()
public net.thevpc.nuts.io.NTerminal getTerminal()
public void setTerminal(net.thevpc.nuts.io.NTerminal terminal)
public net.thevpc.nuts.io.NTerminal createTerminal(InputStream in, net.thevpc.nuts.io.NPrintStream out, net.thevpc.nuts.io.NPrintStream err)
public net.thevpc.nuts.io.NTerminal createTerminal()
public void addPathFactory(net.thevpc.nuts.spi.NPathFactorySPI f)
public void removePathFactory(net.thevpc.nuts.spi.NPathFactorySPI f)
public net.thevpc.nuts.io.NPath resolve(String path, ClassLoader classLoader)
public net.thevpc.nuts.spi.NPathFactorySPI[] getPathFactories()
public DefaultNBootModel getBootModel()
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.util.NLiteral> getConfigProperty(String property)
public boolean isSecure()
public void invalidateStoreModelMain()
Copyright © 2025 vpc open source initiative. All rights reserved.