public class MavenDiscoveryService extends Object implements IMavenDiscoveryUI, IMavenDiscovery, org.osgi.framework.ServiceFactory
Modifier and Type | Class and Description |
---|---|
static class |
MavenDiscoveryService.CatalogItemCacheEntry |
Constructor and Description |
---|
MavenDiscoveryService() |
MavenDiscoveryService(boolean factory) |
Modifier and Type | Method and Description |
---|---|
void |
addCatalogItem(org.eclipse.equinox.internal.p2.discovery.model.CatalogItem item,
LifecycleMappingMetadataSource metadataSource,
List<String> projectConfigurators,
List<String> mappingStrategies) |
Map<ILifecycleMappingRequirement,List<IMavenDiscoveryProposal>> |
discover(Collection<ILifecycleMappingRequirement> requirements,
List<IMavenDiscoveryProposal> preselected,
org.eclipse.core.runtime.IProgressMonitor monitor)
Calculates discovery proposals for a given collection of
ILifecycleMappingRequirement s. |
Map<ILifecycleMappingRequirement,List<IMavenDiscoveryProposal>> |
discover(org.apache.maven.project.MavenProject mavenProject,
List<org.apache.maven.plugin.MojoExecution> mojoExecutions,
List<IMavenDiscoveryProposal> preselected,
org.eclipse.core.runtime.IProgressMonitor monitor)
Calculates possibly empty list of discovery proposals.
|
Object |
getService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration) |
boolean |
implement(List<IMavenDiscoveryProposal> proposals,
org.eclipse.jface.operation.IRunnableWithProgress postInstallHook,
org.eclipse.jface.operation.IRunnableContext context,
Collection<String> projectsToConfigure)
Returns true if postInstallHook has been scheduled for execution and false otherwise
|
boolean |
itemInstalled(org.eclipse.equinox.p2.engine.IProfile profile,
org.eclipse.equinox.internal.p2.discovery.model.CatalogItem item,
org.eclipse.core.runtime.IProgressMonitor monitor)
Returns true if all IUs specified in the catalog item are installed in the profile
|
void |
ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service) |
public MavenDiscoveryService()
public MavenDiscoveryService(boolean factory)
public Map<ILifecycleMappingRequirement,List<IMavenDiscoveryProposal>> discover(org.apache.maven.project.MavenProject mavenProject, List<org.apache.maven.plugin.MojoExecution> mojoExecutions, List<IMavenDiscoveryProposal> preselected, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IMavenDiscovery
Calculates possibly empty list of discovery proposals. Multiple proposals per mapping configuration element represent alternative possible changes.
To support incremental collection of user choices in the GUI, optional preselected
requirements/proposals map is used to eliminate new proposals that conflict with already selected choices. Result
is expected to include preselected proposals as-is. Implementation is expected to eliminate proposals that conflict
with already installed Eclipse bundles and preselected proposals.
discover
in interface IMavenDiscovery
org.eclipse.core.runtime.CoreException
public boolean itemInstalled(org.eclipse.equinox.p2.engine.IProfile profile, org.eclipse.equinox.internal.p2.discovery.model.CatalogItem item, org.eclipse.core.runtime.IProgressMonitor monitor)
public void addCatalogItem(org.eclipse.equinox.internal.p2.discovery.model.CatalogItem item, LifecycleMappingMetadataSource metadataSource, List<String> projectConfigurators, List<String> mappingStrategies)
public boolean implement(List<IMavenDiscoveryProposal> proposals, org.eclipse.jface.operation.IRunnableWithProgress postInstallHook, org.eclipse.jface.operation.IRunnableContext context, Collection<String> projectsToConfigure)
IMavenDiscoveryUI
implement
in interface IMavenDiscoveryUI
public Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService
in interface org.osgi.framework.ServiceFactory
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration, Object service)
ungetService
in interface org.osgi.framework.ServiceFactory
public Map<ILifecycleMappingRequirement,List<IMavenDiscoveryProposal>> discover(Collection<ILifecycleMappingRequirement> requirements, List<IMavenDiscoveryProposal> preselected, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
IMavenDiscovery
Calculates discovery proposals for a given collection of ILifecycleMappingRequirement
s. Multiple proposals
per requirement element can be found.
To support incremental collection of user choices in the GUI, optional preselected
requirements/proposals map is used to eliminate new proposals that conflict with already selected choices. Result
is expected to include preselected proposals as-is. Implementation is expected to eliminate proposals that conflict
with already installed Eclipse bundles and preselected proposals.
discover
in interface IMavenDiscovery
org.eclipse.core.runtime.CoreException
Copyright © 2005–2015 Sonatype, Inc.. All rights reserved.