public class MavenRepositoryServicesManager extends java.lang.Object implements PersistentStateComponent<MavenRepositoryServicesManager>
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
DEFAULT_SERVICES |
Constructor and Description |
---|
MavenRepositoryServicesManager() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<RepositoryArtifactDescription> |
findArtifacts(RepositoryArtifactDescription template,
java.lang.String url) |
static MavenRepositoryServicesManager |
getInstance(Project project) |
static java.util.List<RemoteRepositoryDescription> |
getRepositories(java.lang.String url) |
static MavenRepositoryService [] |
getServices() |
static java.lang.String[] |
getServiceUrls(Project project) |
MavenRepositoryServicesManager |
getState() |
java.util.List<java.lang.String> |
getUrls() |
void |
loadState(MavenRepositoryServicesManager state)
This method is called when new component state is loaded.
|
void |
setUrls(java.util.List<java.lang.String> urls) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static MavenRepositoryServicesManager getInstance(Project project)
public static MavenRepositoryService [] getServices()
public static java.lang.String[] getServiceUrls(Project project)
public java.util.List<java.lang.String> getUrls()
public void setUrls(java.util.List<java.lang.String> urls)
public MavenRepositoryServicesManager getState()
getState
in interface PersistentStateComponent<MavenRepositoryServicesManager>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(MavenRepositoryServicesManager state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<MavenRepositoryServicesManager>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public static java.util.List<RemoteRepositoryDescription> getRepositories(java.lang.String url)
public static java.util.List<RepositoryArtifactDescription> findArtifacts(RepositoryArtifactDescription template, java.lang.String url)