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
ILifecycleMappingRequirements. |
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
IMavenDiscoveryCalculates 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 IMavenDiscoveryorg.eclipse.core.runtime.CoreExceptionpublic 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)
IMavenDiscoveryUIimplement in interface IMavenDiscoveryUIpublic Object getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration registration)
getService in interface org.osgi.framework.ServiceFactorypublic void ungetService(org.osgi.framework.Bundle bundle,
org.osgi.framework.ServiceRegistration registration,
Object service)
ungetService in interface org.osgi.framework.ServiceFactorypublic 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 ILifecycleMappingRequirements. 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 IMavenDiscoveryorg.eclipse.core.runtime.CoreExceptionCopyright © 2005–2021 Eclipse Foundation. All rights reserved.