public class DefaultNutsWorkspaceConfigModel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,net.thevpc.nuts.spi.NutsDependencySolverFactory> |
dependencySolvers |
protected NutsWorkspaceConfigApi |
storeModelApi |
protected NutsWorkspaceConfigBoot |
storeModelBoot |
protected NutsWorkspaceConfigMain |
storeModelMain |
protected NutsWorkspaceConfigRuntime |
storeModelRuntime |
protected NutsWorkspaceConfigSecurity |
storeModelSecurity |
| Constructor and Description |
|---|
DefaultNutsWorkspaceConfigModel(DefaultNutsWorkspace ws) |
| Modifier and Type | Method and Description |
|---|---|
protected net.thevpc.nuts.NutsLogger |
_LOG(net.thevpc.nuts.NutsSession session) |
protected net.thevpc.nuts.NutsLoggerOp |
_LOGOP(net.thevpc.nuts.NutsSession session) |
void |
addPathFactory(net.thevpc.nuts.spi.NutsPathFactory f) |
void |
collect(net.thevpc.nuts.NutsClassLoaderNode n,
LinkedHashMap<String,net.thevpc.nuts.NutsClassLoaderNode> deps) |
net.thevpc.nuts.spi.NutsAuthenticationAgent |
createAuthenticationAgent(String authenticationAgent,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.spi.NutsDependencySolver |
createDependencySolver(String name,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsId |
createSdkId(String type,
String version,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsSessionTerminal |
createTerminal(InputStream in,
net.thevpc.nuts.NutsPrintStream out,
net.thevpc.nuts.NutsPrintStream err,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsSessionTerminal |
createTerminal(net.thevpc.nuts.NutsSession session) |
DefaultNutsWorkspaceCurrentConfig |
current() |
ExecutorService |
executorService(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.runtime.standalone.workspace.config.DefaultNutsWorkspaceConfigModel.NutsBootDef |
fetchBootDef(net.thevpc.nuts.NutsId id,
boolean content,
net.thevpc.nuts.NutsSession session) |
void |
fireConfigurationChanged(String configName,
net.thevpc.nuts.NutsSession session,
ConfigEventType t) |
Set<String> |
getAvailableArchetypes(net.thevpc.nuts.NutsSession session) |
ClassLoader |
getBootClassLoader() |
URL[] |
getBootClassWorldURLs() |
NutsWorkspaceConfigBoot.ExtensionConfig |
getBootExtension(String value,
net.thevpc.nuts.NutsSession session) |
DefaultNutsBootModel |
getBootModel() |
String |
getBootRepositories() |
Map<String,String> |
getConfigMap() |
net.thevpc.nuts.NutsPrimitiveElement |
getConfigProperty(String property,
net.thevpc.nuts.NutsSession session) |
long |
getCreationFinishTimeMillis() |
long |
getCreationStartTimeMillis() |
long |
getCreationTimeMillis() |
DefaultNutsWorkspaceCurrentConfig |
getCurrentConfig() |
net.thevpc.nuts.NutsAddRepositoryOptions[] |
getDefaultRepositories(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.spi.NutsDependencySolverFactory[] |
getDependencySolvers(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.spi.NutsIndexStoreFactory |
getIndexStoreClientFactory() |
String |
getJavaCommand() |
String |
getJavaOptions() |
net.thevpc.nuts.NutsWorkspaceOptions |
getOptions(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.spi.NutsPathFactory[] |
getPathFactories() |
net.thevpc.nuts.NutsPath |
getRepositoriesRoot(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsUserConfig |
getSecurity(String id) |
NutsWorkspaceConfigApi |
getStoredConfigApi() |
NutsWorkspaceConfigBoot |
getStoredConfigBoot() |
NutsWorkspaceConfigMain |
getStoredConfigMain() |
NutsWorkspaceConfigRuntime |
getStoredConfigRuntime() |
NutsWorkspaceConfigSecurity |
getStoredConfigSecurity() |
NutsWorkspaceConfigApi |
getStoreModelApi() |
NutsWorkspaceConfigBoot |
getStoreModelBoot() |
NutsWorkspaceConfigMain |
getStoreModelMain() |
NutsWorkspaceConfigRuntime |
getStoreModelRuntime() |
NutsWorkspaceConfigSecurity |
getStoreModelSecurity() |
net.thevpc.nuts.NutsPath |
getTempRepositoriesRoot(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsSessionTerminal |
getTerminal() |
net.thevpc.nuts.NutsUserConfig |
getUser(String userId,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsUserConfig[] |
getUsers(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsWorkspace |
getWorkspace() |
void |
installBootIds(net.thevpc.nuts.NutsSession session) |
boolean |
isConfigurationChanged() |
boolean |
isExcludedExtension(String extensionId,
net.thevpc.nuts.NutsWorkspaceOptions options,
net.thevpc.nuts.NutsSession session) |
boolean |
isGlobal() |
boolean |
isReadOnly() |
boolean |
isSupportedRepositoryType(String repositoryType,
net.thevpc.nuts.NutsSession session) |
boolean |
isValidWorkspaceFolder(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsWorkspaceBootConfig |
loadBootConfig(String _ws,
boolean global,
boolean followLinks,
net.thevpc.nuts.NutsSession session) |
boolean |
loadWorkspace(net.thevpc.nuts.NutsSession session) |
void |
onExtensionsPrepared(net.thevpc.nuts.NutsSession session) |
void |
onPostUpdateConfig(String confName,
net.thevpc.nuts.NutsSession session) |
void |
onPreUpdateConfig(String confName,
net.thevpc.nuts.NutsSession session) |
void |
prepareBootClassPathConf(net.thevpc.nuts.NutsIdType idType,
net.thevpc.nuts.NutsId id,
net.thevpc.nuts.NutsId forId,
net.thevpc.nuts.NutsId forceRuntimeId,
boolean force,
boolean processDependencies,
net.thevpc.nuts.NutsSession session) |
void |
prepareBootClassPathJar(net.thevpc.nuts.NutsId id,
net.thevpc.nuts.NutsId forId,
net.thevpc.nuts.NutsId forceRuntimeId,
boolean processDependencies,
net.thevpc.nuts.NutsSession session) |
void |
removePathFactory(net.thevpc.nuts.spi.NutsPathFactory f) |
void |
removeUser(String userId,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsPath |
resolve(String path,
net.thevpc.nuts.NutsSession session,
ClassLoader classLoader) |
net.thevpc.nuts.spi.NutsRepositoryLocation[] |
resolveBootRepositoriesBootSelectionArray(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.spi.NutsRepositorySelectorList |
resolveBootRepositoriesList(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsPath |
resolveRepositoryPath(net.thevpc.nuts.NutsPath repositoryLocation,
net.thevpc.nuts.NutsSession session) |
boolean |
save(boolean force,
net.thevpc.nuts.NutsSession session) |
boolean |
save(net.thevpc.nuts.NutsSession session) |
void |
setBootApiVersion(String value,
net.thevpc.nuts.NutsSession session) |
void |
setBootExtension(String value,
String dependencies,
boolean enabled,
net.thevpc.nuts.NutsSession session) |
void |
setBootRepositories(String value,
net.thevpc.nuts.NutsSession session) |
void |
setBootRuntimeDependencies(String dependencies,
net.thevpc.nuts.NutsSession session) |
void |
setBootRuntimeId(String value,
String dependencies,
net.thevpc.nuts.NutsSession session) |
void |
setConfigApi(NutsWorkspaceConfigApi config,
net.thevpc.nuts.NutsSession session) |
void |
setConfigApi(NutsWorkspaceConfigApi config,
net.thevpc.nuts.NutsSession session,
boolean fire) |
void |
setConfigBoot(NutsWorkspaceConfigBoot config,
net.thevpc.nuts.NutsSession options) |
void |
setConfigMain(NutsWorkspaceConfigMain config,
net.thevpc.nuts.NutsSession session) |
void |
setConfigProperty(String property,
String value,
net.thevpc.nuts.NutsSession session) |
void |
setConfigRuntime(NutsWorkspaceConfigRuntime config,
net.thevpc.nuts.NutsSession options) |
void |
setConfigRuntime(NutsWorkspaceConfigRuntime config,
net.thevpc.nuts.NutsSession session,
boolean fire) |
void |
setConfigSecurity(NutsWorkspaceConfigSecurity config,
net.thevpc.nuts.NutsSession session) |
void |
setCurrentConfig(DefaultNutsWorkspaceCurrentConfig currentConfig) |
void |
setEndCreateTimeMillis(long endCreateTime) |
void |
setExtraBootExtensionId(net.thevpc.nuts.NutsId apiId,
net.thevpc.nuts.NutsId extensionId,
net.thevpc.nuts.NutsDependency[] deps,
net.thevpc.nuts.NutsSession session) |
void |
setExtraBootRuntimeId(net.thevpc.nuts.NutsId apiId,
net.thevpc.nuts.NutsId runtimeId,
net.thevpc.nuts.NutsDependency[] deps,
net.thevpc.nuts.NutsSession session) |
void |
setSecure(boolean secure,
net.thevpc.nuts.NutsSession session) |
void |
setStartCreateTimeMillis(long startCreateTime) |
void |
setTerminal(net.thevpc.nuts.NutsSessionTerminal terminal,
net.thevpc.nuts.NutsSession session) |
void |
setUser(net.thevpc.nuts.NutsUserConfig config,
net.thevpc.nuts.NutsSession session) |
void |
setUsers(net.thevpc.nuts.NutsUserConfig[] users,
net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsWorkspaceStoredConfig |
stored() |
String |
toString() |
protected NutsWorkspaceConfigBoot storeModelBoot
protected NutsWorkspaceConfigApi storeModelApi
protected NutsWorkspaceConfigRuntime storeModelRuntime
protected NutsWorkspaceConfigSecurity storeModelSecurity
protected NutsWorkspaceConfigMain storeModelMain
public DefaultNutsWorkspaceConfigModel(DefaultNutsWorkspace ws)
protected net.thevpc.nuts.NutsLoggerOp _LOGOP(net.thevpc.nuts.NutsSession session)
protected net.thevpc.nuts.NutsLogger _LOG(net.thevpc.nuts.NutsSession session)
public DefaultNutsWorkspaceCurrentConfig getCurrentConfig()
public void setCurrentConfig(DefaultNutsWorkspaceCurrentConfig currentConfig)
public net.thevpc.nuts.NutsWorkspaceStoredConfig stored()
public ClassLoader getBootClassLoader()
public URL[] getBootClassWorldURLs()
public boolean isReadOnly()
public boolean save(boolean force,
net.thevpc.nuts.NutsSession session)
public boolean save(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsWorkspaceBootConfig loadBootConfig(String _ws, boolean global, boolean followLinks, net.thevpc.nuts.NutsSession session)
public boolean isExcludedExtension(String extensionId, net.thevpc.nuts.NutsWorkspaceOptions options, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsWorkspaceOptions getOptions(net.thevpc.nuts.NutsSession session)
public boolean isSupportedRepositoryType(String repositoryType, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsAddRepositoryOptions[] getDefaultRepositories(net.thevpc.nuts.NutsSession session)
public Set<String> getAvailableArchetypes(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsPath resolveRepositoryPath(net.thevpc.nuts.NutsPath repositoryLocation,
net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.spi.NutsIndexStoreFactory getIndexStoreClientFactory()
public String getBootRepositories()
public String getJavaCommand()
public String getJavaOptions()
public boolean isGlobal()
public long getCreationStartTimeMillis()
public long getCreationFinishTimeMillis()
public long getCreationTimeMillis()
public NutsWorkspaceConfigMain getStoreModelMain()
public DefaultNutsWorkspaceCurrentConfig current()
public void setStartCreateTimeMillis(long startCreateTime)
public void setConfigBoot(NutsWorkspaceConfigBoot config, net.thevpc.nuts.NutsSession options)
public void setConfigApi(NutsWorkspaceConfigApi config, net.thevpc.nuts.NutsSession session)
public void setConfigRuntime(NutsWorkspaceConfigRuntime config, net.thevpc.nuts.NutsSession options)
public void setConfigSecurity(NutsWorkspaceConfigSecurity config, net.thevpc.nuts.NutsSession session)
public void setConfigMain(NutsWorkspaceConfigMain config, net.thevpc.nuts.NutsSession session)
public void setEndCreateTimeMillis(long endCreateTime)
public void installBootIds(net.thevpc.nuts.NutsSession session)
public boolean isConfigurationChanged()
public boolean loadWorkspace(net.thevpc.nuts.NutsSession session)
public void setBootApiVersion(String value, net.thevpc.nuts.NutsSession session)
public void setExtraBootExtensionId(net.thevpc.nuts.NutsId apiId,
net.thevpc.nuts.NutsId extensionId,
net.thevpc.nuts.NutsDependency[] deps,
net.thevpc.nuts.NutsSession session)
public void setExtraBootRuntimeId(net.thevpc.nuts.NutsId apiId,
net.thevpc.nuts.NutsId runtimeId,
net.thevpc.nuts.NutsDependency[] deps,
net.thevpc.nuts.NutsSession session)
public void setBootRuntimeId(String value, String dependencies, net.thevpc.nuts.NutsSession session)
public void setBootRuntimeDependencies(String dependencies, net.thevpc.nuts.NutsSession session)
public void setBootRepositories(String value, net.thevpc.nuts.NutsSession session)
public NutsWorkspaceConfigBoot.ExtensionConfig getBootExtension(String value, net.thevpc.nuts.NutsSession session)
public void setBootExtension(String value, String dependencies, boolean enabled, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsUserConfig getUser(String userId, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsUserConfig[] getUsers(net.thevpc.nuts.NutsSession session)
public void setUser(net.thevpc.nuts.NutsUserConfig config,
net.thevpc.nuts.NutsSession session)
public void removeUser(String userId, net.thevpc.nuts.NutsSession session)
public void setSecure(boolean secure,
net.thevpc.nuts.NutsSession session)
public void fireConfigurationChanged(String configName, net.thevpc.nuts.NutsSession session, ConfigEventType t)
public NutsWorkspaceConfigApi getStoredConfigApi()
public NutsWorkspaceConfigBoot getStoredConfigBoot()
public NutsWorkspaceConfigSecurity getStoredConfigSecurity()
public NutsWorkspaceConfigMain getStoredConfigMain()
public net.thevpc.nuts.NutsWorkspace getWorkspace()
public net.thevpc.nuts.spi.NutsDependencySolver createDependencySolver(String name, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.spi.NutsDependencySolverFactory[] getDependencySolvers(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsPath getRepositoriesRoot(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsPath getTempRepositoriesRoot(net.thevpc.nuts.NutsSession session)
public boolean isValidWorkspaceFolder(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.spi.NutsAuthenticationAgent createAuthenticationAgent(String authenticationAgent, net.thevpc.nuts.NutsSession session)
public void setUsers(net.thevpc.nuts.NutsUserConfig[] users,
net.thevpc.nuts.NutsSession session)
public NutsWorkspaceConfigRuntime getStoredConfigRuntime()
public net.thevpc.nuts.NutsId createSdkId(String type, String version, net.thevpc.nuts.NutsSession session)
public void onExtensionsPrepared(net.thevpc.nuts.NutsSession session)
public void setConfigApi(NutsWorkspaceConfigApi config, net.thevpc.nuts.NutsSession session, boolean fire)
public void setConfigRuntime(NutsWorkspaceConfigRuntime config, net.thevpc.nuts.NutsSession session, boolean fire)
public void collect(net.thevpc.nuts.NutsClassLoaderNode n,
LinkedHashMap<String,net.thevpc.nuts.NutsClassLoaderNode> deps)
public net.thevpc.nuts.runtime.standalone.workspace.config.DefaultNutsWorkspaceConfigModel.NutsBootDef fetchBootDef(net.thevpc.nuts.NutsId id,
boolean content,
net.thevpc.nuts.NutsSession session)
public void prepareBootClassPathConf(net.thevpc.nuts.NutsIdType idType,
net.thevpc.nuts.NutsId id,
net.thevpc.nuts.NutsId forId,
net.thevpc.nuts.NutsId forceRuntimeId,
boolean force,
boolean processDependencies,
net.thevpc.nuts.NutsSession session)
public void prepareBootClassPathJar(net.thevpc.nuts.NutsId id,
net.thevpc.nuts.NutsId forId,
net.thevpc.nuts.NutsId forceRuntimeId,
boolean processDependencies,
net.thevpc.nuts.NutsSession session)
public void onPreUpdateConfig(String confName, net.thevpc.nuts.NutsSession session)
public void onPostUpdateConfig(String confName, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsUserConfig getSecurity(String id)
public net.thevpc.nuts.spi.NutsRepositoryLocation[] resolveBootRepositoriesBootSelectionArray(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.spi.NutsRepositorySelectorList resolveBootRepositoriesList(net.thevpc.nuts.NutsSession session)
public NutsWorkspaceConfigBoot getStoreModelBoot()
public NutsWorkspaceConfigApi getStoreModelApi()
public NutsWorkspaceConfigRuntime getStoreModelRuntime()
public NutsWorkspaceConfigSecurity getStoreModelSecurity()
public ExecutorService executorService(net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsSessionTerminal getTerminal()
public void setTerminal(net.thevpc.nuts.NutsSessionTerminal terminal,
net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsSessionTerminal createTerminal(InputStream in, net.thevpc.nuts.NutsPrintStream out, net.thevpc.nuts.NutsPrintStream err, net.thevpc.nuts.NutsSession session)
public net.thevpc.nuts.NutsSessionTerminal createTerminal(net.thevpc.nuts.NutsSession session)
public void addPathFactory(net.thevpc.nuts.spi.NutsPathFactory f)
public void removePathFactory(net.thevpc.nuts.spi.NutsPathFactory f)
public net.thevpc.nuts.NutsPath resolve(String path, net.thevpc.nuts.NutsSession session, ClassLoader classLoader)
public net.thevpc.nuts.spi.NutsPathFactory[] getPathFactories()
public DefaultNutsBootModel getBootModel()
public net.thevpc.nuts.NutsPrimitiveElement getConfigProperty(String property, net.thevpc.nuts.NutsSession session)
Copyright © 2022 vpc open source initiative. All rights reserved.