Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## fr.jayasoft.ivy.resolver
Class AbstractResourceResolver

    java.lang.Object
      fr.jayasoft.ivy.resolver.AbstractResolver
          fr.jayasoft.ivy.resolver.BasicResolver
              fr.jayasoft.ivy.resolver.AbstractResourceResolver

All Implemented Interfaces:
  DependencyResolver, HasLatestStrategy, IvyAware

Direct Known Subclasses:
  RepositoryResolver

public abstract class AbstractResourceResolver
extends BasicResolver

Author:
  Xavier Hanin

Field Summary

Fields inherited from class fr.jayasoft.ivy.resolver.BasicResolver
`_workspaceName, DATE_FORMAT`

Constructor Summary
`AbstractResourceResolver()`

Method Summary
`void` | `addArtifactPattern(java.lang.String pattern)`
`void` | `addConfiguredArtifact(IvyPattern p)`
`void` | `addConfiguredIvy(IvyPattern p)`
`void` | `addIvyPattern(java.lang.String pattern)` example of pattern : ~/Workspace/[module]/[module].ivy.xml
`protected ModuleRevisionId` | `convertM2IdForResourceSearch(ModuleRevisionId mrid)`
`void` | `dumpConfig()`
`protected abstract ResolvedResource[]` | `findAll(ModuleRevisionId mrid, java.lang.String pattern, java.lang.String artifact, java.lang.String type, java.lang.String ext)`
`protected java.util.Collection` | `findArtifactNames(java.util.Map tokenValues, java.lang.String token)`
`protected ResolvedResource` | `findArtifactRef(Artifact artifact, java.util.Date date)`
`protected ResolvedResource` | `findIvyFileRef(DependencyDescriptor dd, ResolveData data)`
`protected java.util.Collection` | `findIvyNames(java.util.Map tokenValues, java.lang.String token)`
`protected java.util.Collection` | `findNames(java.util.Map tokenValues, java.lang.String token)`
`protected abstract ResolvedResource` | `findResourceUsingPattern(ModuleRevisionId mrid, java.lang.String pattern, java.lang.String artifact, java.lang.String type, java.lang.String ext, java.util.Date date)`
`protected ResolvedResource` | `findResourceUsingPatterns(ModuleRevisionId moduleRevision, java.util.List patternList, java.lang.String artifact, java.lang.String type, java.lang.String ext, java.util.Date date)`
`protected void` | `findTokenValues(java.util.Collection names, java.util.List patterns, java.util.Map tokenValues, java.lang.String token)`
`protected abstract long` | `get(Resource resource, java.io.File dest)`
`java.util.List` | `getArtifactPatterns()`
`java.util.List` | `getIvyPatterns()`
`boolean` | `isM2compatible()`
`protected void` | `logArtifactNotFound(Artifact artifact)` Output message to log indicating what have been done to look for an artifact which has finally not been found
`protected void` | `logIvyNotFound(ModuleRevisionId mrid)` Output message to log indicating what have been done to look for an artifact which has finally not been found
`protected void` | `setArtifactPatterns(java.util.List artifactPatterns)`
`protected void` | `setIvyPatterns(java.util.List ivyPatterns)`
`void` | `setM2compatible(boolean m2compatible)`

Methods inherited from class fr.jayasoft.ivy.resolver.BasicResolver
`acceptLatest, clearArtifactAttempts, clearIvyAttempts, download, exists, findFirstArtifactRef, getDependency, getPublicationDate, getWorkspaceName, isCheckconsistency, isCheckmodified, isEnvDependent, listModules, listOrganisations, listRevisions, logArtifactAttempt, logIvyAttempt, reportFailure, reportFailure, searchedRmr, setCheckconsistency, setCheckmodified, setEnvDependent, setWorkspaceName, toString`

Methods inherited from class fr.jayasoft.ivy.resolver.AbstractResolver
`doValidate, findModuleInCache, fromSystem, fromSystem, getIvy, getLatest, getLatestStrategy, getName, getNamespace, getSystemNode, getTypeName, isValidate, setIvy, setLatest, setLatestStrategy, setName, setNamespace, setValidate, toSystem, toSystem, toSystem, toSystem`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface fr.jayasoft.ivy.DependencyResolver
`publish`

Constructor Detail

### AbstractResourceResolver

    public AbstractResourceResolver()

Method Detail

### findIvyFileRef

    protected ResolvedResource findIvyFileRef(DependencyDescriptor dd,
                                              ResolveData data)

  Specified by:
    `findIvyFileRef` in class `BasicResolver`

### findArtifactRef

    protected ResolvedResource findArtifactRef(Artifact artifact,
                                               java.util.Date date)

  Specified by:
    `findArtifactRef` in class `BasicResolver`

### findResourceUsingPatterns

    protected ResolvedResource findResourceUsingPatterns(ModuleRevisionId moduleRevision,
                                                         java.util.List patternList,
                                                         java.lang.String artifact,
                                                         java.lang.String type,
                                                         java.lang.String ext,
                                                         java.util.Date date)

### findResourceUsingPattern

    protected abstract ResolvedResource findResourceUsingPattern(ModuleRevisionId mrid,
                                                                 java.lang.String pattern,
                                                                 java.lang.String artifact,
                                                                 java.lang.String type,
                                                                 java.lang.String ext,
                                                                 java.util.Date date)

### findAll

    protected abstract ResolvedResource[] findAll(ModuleRevisionId mrid,
                                                  java.lang.String pattern,
                                                  java.lang.String artifact,
                                                  java.lang.String type,
                                                  java.lang.String ext)

### get

    protected abstract long get(Resource resource,
                                java.io.File dest)
                         throws java.io.IOException

  Specified by:
    `get` in class `BasicResolver`
  Throws:
    `java.io.IOException`

### logIvyNotFound

    protected void logIvyNotFound(ModuleRevisionId mrid)

  Output message to log indicating what have been done to look for an artifact which has finally not been found

  Specified by:
    `logIvyNotFound` in class `BasicResolver`

### logArtifactNotFound

    protected void logArtifactNotFound(Artifact artifact)

  Output message to log indicating what have been done to look for an artifact which has finally not been found

  Specified by:
    `logArtifactNotFound` in class `BasicResolver`
  Parameters:
    `artifact` - the artifact which has not been found

### findNames

    protected java.util.Collection findNames(java.util.Map tokenValues,
                                             java.lang.String token)

  Specified by:
    `findNames` in class `BasicResolver`

### findIvyNames

    protected java.util.Collection findIvyNames(java.util.Map tokenValues,
                                                java.lang.String token)

### findArtifactNames

    protected java.util.Collection findArtifactNames(java.util.Map tokenValues,
                                                     java.lang.String token)

### findTokenValues

    protected void findTokenValues(java.util.Collection names,
                                   java.util.List patterns,
                                   java.util.Map tokenValues,
                                   java.lang.String token)

### addIvyPattern

    public void addIvyPattern(java.lang.String pattern)

  example of pattern : ~/Workspace/[module]/[module].ivy.xml

  Parameters:
    `pattern` -

### addArtifactPattern

    public void addArtifactPattern(java.lang.String pattern)

### getIvyPatterns

    public java.util.List getIvyPatterns()

### getArtifactPatterns

    public java.util.List getArtifactPatterns()

### setIvyPatterns

    protected void setIvyPatterns(java.util.List ivyPatterns)

### setArtifactPatterns

    protected void setArtifactPatterns(java.util.List artifactPatterns)

### addConfiguredIvy

    public void addConfiguredIvy(IvyPattern p)

### addConfiguredArtifact

    public void addConfiguredArtifact(IvyPattern p)

### dumpConfig

    public void dumpConfig()

  Specified by:
    `dumpConfig` in interface `DependencyResolver`
  Overrides:
    `dumpConfig` in class `AbstractResolver`

### isM2compatible

    public boolean isM2compatible()

### setM2compatible

    public void setM2compatible(boolean m2compatible)

### convertM2IdForResourceSearch

    protected ModuleRevisionId convertM2IdForResourceSearch(ModuleRevisionId mrid)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD