public class FabResolverFactoryImpl.FabResolverImpl extends java.lang.Object implements FabResolver, FabFacade
| Constructor and Description |
|---|
FabResolverFactoryImpl.FabResolverImpl(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
DependencyTree |
collectDependencyTree(boolean offline,
Filter<org.sonatype.aether.graph.Dependency> excludeDependencyFilter) |
protected void |
configureInstructions(java.util.Properties instructions,
java.util.Map<java.lang.String,java.lang.Object> embeddedResources)
Strategy method to allow the instructions to be processed by derived classes
|
protected java.util.Properties |
createInstructions(java.util.Map<java.lang.String,java.lang.Object> embeddedResources)
Returns the processing instructions
|
org.osgi.framework.BundleContext |
getBundleContext() |
FabClassPathResolver |
getClassPathResolver() |
FabClassPathResolver |
getClasspathResolver(java.util.Properties instructions,
java.util.Map<java.lang.String,java.lang.Object> embeddedResources) |
Configuration |
getConfiguration() |
FabBundleInfo |
getInfo() |
java.io.File |
getJarFile() |
PomDetails |
getPomDetails() |
java.lang.String |
getProjectDescription() |
MavenResolver |
getResolver() |
VersionedDependencyId |
getVersionedDependencyId() |
boolean |
isIncludeSharedResources() |
boolean |
isInstalled(DependencyTree tree)
Check if a given dependency tree item is already installed in the facade's context
|
protected void |
logFailure(java.lang.Exception e) |
PomDetails |
resolvePomDetails()
If the PomDetails has not been resolved yet, try and resolve it
|
void |
setIncludeSharedResources(boolean includeSharedResources) |
void |
setPomDetails(PomDetails pomDetails) |
void |
setRootTree(DependencyTree rootTree) |
java.lang.String |
toVersionRange(java.lang.String version)
Lets convert the version to a version range depending on the default or FAB specific version range value
|
public FabResolverFactoryImpl.FabResolverImpl(java.net.URL url)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic DependencyTree collectDependencyTree(boolean offline, Filter<org.sonatype.aether.graph.Dependency> excludeDependencyFilter) throws org.sonatype.aether.RepositoryException, java.io.IOException
collectDependencyTree in interface FabFacadeorg.sonatype.aether.RepositoryExceptionjava.io.IOExceptionpublic void setRootTree(DependencyTree rootTree)
protected void logFailure(java.lang.Exception e)
public VersionedDependencyId getVersionedDependencyId() throws java.io.IOException
getVersionedDependencyId in interface FabFacadejava.io.IOExceptionpublic java.lang.String getProjectDescription()
getProjectDescription in interface FabFacadepublic org.osgi.framework.BundleContext getBundleContext()
public MavenResolver getResolver()
getResolver in interface FabFacadepublic Configuration getConfiguration()
getConfiguration in interface FabFacadepublic PomDetails getPomDetails()
public void setPomDetails(PomDetails pomDetails)
public java.io.File getJarFile()
throws java.io.IOException
getJarFile in interface FabFacadejava.io.IOExceptionpublic boolean isIncludeSharedResources()
isIncludeSharedResources in interface FabFacadepublic void setIncludeSharedResources(boolean includeSharedResources)
public PomDetails resolvePomDetails() throws java.io.IOException
resolvePomDetails in interface FabFacadejava.io.IOExceptionpublic FabBundleInfo getInfo() throws java.io.IOException
getInfo in interface FabResolverjava.io.IOExceptionprotected java.util.Properties createInstructions(java.util.Map<java.lang.String,java.lang.Object> embeddedResources)
throws java.io.IOException,
org.sonatype.aether.RepositoryException,
org.osgi.framework.BundleException
embeddedResources - java.io.IOExceptionorg.sonatype.aether.RepositoryExceptionorg.osgi.framework.BundleExceptionprotected void configureInstructions(java.util.Properties instructions,
java.util.Map<java.lang.String,java.lang.Object> embeddedResources)
throws org.sonatype.aether.RepositoryException,
java.io.IOException,
org.osgi.framework.BundleException
org.sonatype.aether.RepositoryExceptionjava.io.IOExceptionorg.osgi.framework.BundleExceptionpublic java.lang.String toVersionRange(java.lang.String version)
FabFacadetoVersionRange in interface FabFacadepublic boolean isInstalled(DependencyTree tree)
FabFacadeisInstalled in interface FabFacadetree - the dependency treetrue is the dependency is already installedpublic FabClassPathResolver getClasspathResolver(java.util.Properties instructions, java.util.Map<java.lang.String,java.lang.Object> embeddedResources)
public FabClassPathResolver getClassPathResolver()
Copyright © 2014 Red Hat. All Rights Reserved.