public abstract class ConfigurableMavenResolverSystemBaseImpl<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURALBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURALBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,EQUIPPEDRESOLVESTAGETYPE extends PomEquippedResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,UNEQUIPPEDRESOLVESTAGETYPE extends PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage> extends MavenResolverSystemBaseImpl<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURALBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE> implements ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURALBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>
ConfigurableMavenResolverSystem
Constructor and Description |
---|
ConfigurableMavenResolverSystemBaseImpl(UNEQUIPPEDRESOLVESTAGETYPE delegate) |
Modifier and Type | Method and Description |
---|---|
UNCONFIGURABLERESOLVERSYSTEMTYPE |
configureFromClassloaderResource(String path)
Optional operation.
|
UNCONFIGURABLERESOLVERSYSTEMTYPE |
configureFromClassloaderResource(String path,
ClassLoader loader)
Optional operation.
|
UNCONFIGURABLERESOLVERSYSTEMTYPE |
configureFromFile(File file)
Optional operation.
|
UNCONFIGURABLERESOLVERSYSTEMTYPE |
configureFromFile(String pathToFile)
Optional operation.
|
EQUIPPEDRESOLVESTAGETYPE |
configureViaPlugin()
Configures the current session from POM metadata found via the ShrinkWrap Resolver Maven Plugin; retrieves
information from the currently-running Maven process.
|
protected abstract EQUIPPEDRESOLVESTAGETYPE |
createPomEquippedResolveStage()
Returns a new EQUIPPEDRESOLVESTAGETYPE for the current session
|
protected abstract UNCONFIGURABLERESOLVERSYSTEMTYPE |
getUnconfigurableView()
Returns the UNCONFIGURABLERESOLVERSYSTEMTYPE view type of this
ConfigurableMavenResolverSystemBase |
addDependencies, addDependencies, addDependency, getSession, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromFile, loadPomFromFile, loadPomFromFile, loadPomFromFile, offline, offline, resolve, resolve, resolve, resolve, resolveVersionRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
offline, offline
loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromFile, loadPomFromFile, loadPomFromFile, loadPomFromFile
resolveVersionRange
addDependencies, addDependencies, addDependency, resolve, resolve, resolve, resolve
public ConfigurableMavenResolverSystemBaseImpl(UNEQUIPPEDRESOLVESTAGETYPE delegate) throws IllegalArgumentException
delegate
- IllegalArgumentException
public final UNCONFIGURABLERESOLVERSYSTEMTYPE configureFromFile(File file) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the specified fileconfigureFromFile
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>>
ResolverSystem
IllegalArgumentException
- If the file is not specified, is a directory, or does not existUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by File
InvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfigurableResolverSystem.configureFromFile(java.io.File)
public final UNCONFIGURABLERESOLVERSYSTEMTYPE configureFromFile(String pathToFile) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the file at the specified pathconfigureFromFile
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>>
ResolverSystem
IllegalArgumentException
- If the file is not specified, is a directory, or does not existUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by File
InvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfigurableResolverSystem.configureFromFile(java.lang.String)
public final UNCONFIGURABLERESOLVERSYSTEMTYPE configureFromClassloaderResource(String path) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the result of
ClassLoader.getResource(String)
using the current Thread.getContextClassLoader()
configureFromClassloaderResource
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>>
ResolverSystem
IllegalArgumentException
- If the either argument is not specified or if the path can not be foundUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by ClassLoader
resourceInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfigurableResolverSystem.configureFromClassloaderResource(java.lang.String)
public final UNCONFIGURABLERESOLVERSYSTEMTYPE configureFromClassloaderResource(String path, ClassLoader loader) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the result of
ClassLoader.getResource(String)
using the specified ClassLoader
configureFromClassloaderResource
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>>
ResolverSystem
IllegalArgumentException
- If the either argument is not specified or if the path can not be foundUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by ClassLoader
resourceInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfigurableResolverSystem.configureFromClassloaderResource(java.lang.String,
java.lang.ClassLoader)
public final EQUIPPEDRESOLVESTAGETYPE configureViaPlugin() throws InvalidEnvironmentException
configureViaPlugin
in interface ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURALBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURALBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,EQUIPPEDRESOLVESTAGETYPE extends PomEquippedResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,UNEQUIPPEDRESOLVESTAGETYPE extends PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage>
InvalidEnvironmentException
- If the currently-executing environment is not under the control of the ShrinkWrap Resolver Maven
PluginConfigurableMavenResolverSystemBase.configureViaPlugin()
protected abstract UNCONFIGURABLERESOLVERSYSTEMTYPE getUnconfigurableView()
ConfigurableMavenResolverSystemBase
protected abstract EQUIPPEDRESOLVESTAGETYPE createPomEquippedResolveStage()
Copyright © 2013 JBoss by Red Hat. All rights reserved.