public abstract class AbstractOSGiResolver extends BasicResolver
Modifier and Type | Class and Description |
---|---|
static class |
AbstractOSGiResolver.RequirementStrategy |
Modifier and Type | Field and Description |
---|---|
protected static RepoDescriptor |
FAILING_REPO_DESCRIPTOR |
DATE_FORMAT, DESCRIPTOR_OPTIONAL, DESCRIPTOR_REQUIRED
Constructor and Description |
---|
AbstractOSGiResolver() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkModuleDescriptorRevision(ModuleDescriptor systemMd,
ModuleRevisionId systemMrid) |
protected void |
ensureInit() |
protected java.util.Collection |
filterNames(java.util.Collection names)
Filters names before returning them in the findXXXNames or findTokenValues method.
|
ResolvedResource |
findArtifactRef(Artifact artifact,
java.util.Date date) |
ResolvedResource[] |
findBundle(DependencyDescriptor dd,
ResolveData data,
java.util.Collection<ModuleDescriptor> mds) |
ResolvedResource[] |
findCapability(DependencyDescriptor dd,
ResolveData data,
java.util.Collection<ModuleDescriptor> mds) |
ResolvedResource |
findIvyFileRef(DependencyDescriptor dd,
ResolveData data)
Finds the module descriptor for the specified DependencyDescriptor.
|
protected java.util.Collection |
findNames(java.util.Map tokenValues,
java.lang.String token) |
ResolvedResource |
findResource(ResolvedResource[] rress,
ResourceMDParser rmdparser,
ModuleRevisionId mrid,
java.util.Date date)
When the resolver has many choices, this function helps choosing one
|
protected long |
get(Resource resource,
java.io.File dest) |
RepoDescriptor |
getRepoDescriptor() |
URLRepository |
getRepository() |
protected Resource |
getResource(java.lang.String source) |
protected abstract void |
init() |
boolean |
isAllownomd() |
java.util.Map[] |
listTokenValues(java.lang.String[] tokens,
java.util.Map criteria)
Same as
DependencyResolver.listTokenValues(String, Map) but more generic. |
void |
publish(Artifact artifact,
java.io.File src,
boolean overwrite) |
protected void |
setRepoDescriptor(RepoDescriptor repoDescriptor) |
void |
setRequirementStrategy(AbstractOSGiResolver.RequirementStrategy importPackageStrategy) |
void |
setRequirementStrategy(java.lang.String strategy) |
acceptLatest, clearArtifactAttempts, clearIvyAttempts, doFindArtifactRef, download, download, exists, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getDependency, getPublicationDate, getRMDParser, getWorkspaceName, isCheckconsistency, isEnvDependent, isForce, listModules, listOrganisations, listRevisions, listTokenValues, locate, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, setAllownomd, setCheckconsistency, setChecksums, setDescriptor, setEnvDependent, setForce, setWorkspaceName, shouldReturnResolvedModule, toString
abortPublishTransaction, beginPublishTransaction, checkInterrupted, checkLatest, commitPublishTransaction, doValidate, dumpSettings, findModuleInCache, findModuleInCache, fromSystem, fromSystem, getCacheDownloadOptions, getCacheOptions, getChangingMatcherName, getChangingPattern, getDownloadOptions, getEventManager, getLatest, getLatestStrategy, getName, getNamespace, getParserSettings, getRepositoryCacheManager, getSettings, getSystemNode, getTypeName, hidePassword, isAfter, isValidate, saveModuleRevisionIfNeeded, setCache, setChangingMatcher, setChangingPattern, setCheckmodified, setEventManager, setLatest, setLatestStrategy, setName, setNamespace, setRepositoryCacheManager, setSettings, setValidate, toSystem, toSystem, toSystem, toSystem, toSystem, toSystem, validate
protected static final RepoDescriptor FAILING_REPO_DESCRIPTOR
public void setRequirementStrategy(AbstractOSGiResolver.RequirementStrategy importPackageStrategy)
public void setRequirementStrategy(java.lang.String strategy)
protected void setRepoDescriptor(RepoDescriptor repoDescriptor)
public URLRepository getRepository()
protected void ensureInit()
protected abstract void init()
public RepoDescriptor getRepoDescriptor()
public boolean isAllownomd()
isAllownomd
in class BasicResolver
public ResolvedResource findIvyFileRef(DependencyDescriptor dd, ResolveData data)
DependencyResolver
dd
- the dependency descriptordata
- the resolve datapublic ResolvedResource[] findBundle(DependencyDescriptor dd, ResolveData data, java.util.Collection<ModuleDescriptor> mds)
public ResolvedResource[] findCapability(DependencyDescriptor dd, ResolveData data, java.util.Collection<ModuleDescriptor> mds)
public ResolvedResource findResource(ResolvedResource[] rress, ResourceMDParser rmdparser, ModuleRevisionId mrid, java.util.Date date)
BasicResolver
findResource
in class BasicResolver
rress
- the list of resolved resource which the resolver found to fit the requirementrmdparser
- the parser of module descriptormrid
- the module being resolveddate
- the current datepublic ResolvedResource findArtifactRef(Artifact artifact, java.util.Date date)
findArtifactRef
in class BasicResolver
protected void checkModuleDescriptorRevision(ModuleDescriptor systemMd, ModuleRevisionId systemMrid)
checkModuleDescriptorRevision
in class BasicResolver
protected java.util.Collection filterNames(java.util.Collection names)
BasicResolver
Remember to call the super implementation when overriding this method.
filterNames
in class BasicResolver
names
- the list to filter.protected java.util.Collection findNames(java.util.Map tokenValues, java.lang.String token)
findNames
in class BasicResolver
public java.util.Map[] listTokenValues(java.lang.String[] tokens, java.util.Map criteria)
DependencyResolver
DependencyResolver.listTokenValues(String, Map)
but more generic.listTokenValues
in interface DependencyResolver
listTokenValues
in class AbstractResolver
tokens
- the tokens of the querycriteria
- the token which have valuesnull
protected long get(Resource resource, java.io.File dest) throws java.io.IOException
get
in class BasicResolver
java.io.IOException
protected Resource getResource(java.lang.String source) throws java.io.IOException
getResource
in class BasicResolver
java.io.IOException
public void publish(Artifact artifact, java.io.File src, boolean overwrite) throws java.io.IOException
java.io.IOException