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