public class MojoParameterMetadataProvider extends java.lang.Object implements IMojoParameterMetadataProvider
| Modifier and Type | Field and Description |
|---|---|
private static com.google.common.cache.Cache<java.lang.String,MojoParameter> |
cache |
static java.lang.String |
EXTENSION_MOJO_PARAMETER_METADATA |
private static org.slf4j.Logger |
log |
protected MavenImpl |
maven |
private static java.util.Map<java.lang.String,MojoParameter> |
PREDEF |
| Constructor and Description |
|---|
MojoParameterMetadataProvider() |
| Modifier and Type | Method and Description |
|---|---|
(package private) <T> T |
execute(ArtifactKey pluginKey,
ICallable<T> callable) |
MojoParameter |
getClassConfiguration(ArtifactKey pluginKey,
java.lang.String className)
Calculates available configuration of a single plugin class.
|
MojoParameter |
getClassConfiguration(ArtifactKey pluginKey,
java.lang.String className,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
MojoParameter |
getMojoConfiguration(ArtifactKey pluginKey)
Calculates available configuration of all mojos provided by specified plugin.
|
MojoParameter |
getMojoConfiguration(ArtifactKey pluginKey,
java.util.Collection<java.lang.String> mojos)
Calculates available configuration of a number of mojos.
|
MojoParameter |
getMojoConfiguration(ArtifactKey pluginKey,
java.util.Collection<java.lang.String> mojos,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
MojoParameter |
getMojoConfiguration(ArtifactKey pluginKey,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
MojoParameter |
getMojoConfiguration(ArtifactKey pluginKey,
java.lang.String mojo)
Calculates available configuration of one specific mojo.
|
MojoParameter |
getMojoConfiguration(ArtifactKey pluginKey,
java.lang.String mojo,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated.
|
(package private) org.apache.maven.plugin.descriptor.PluginDescriptor |
getPluginDescriptor(ArtifactKey pluginKey,
IMavenExecutionContext context,
org.eclipse.core.runtime.IProgressMonitor monitor) |
private MojoParameter |
getPredefined(ArtifactKey pluginKey) |
(package private) org.apache.maven.project.MavenProject |
getProject(IMavenExecutionContext context) |
(package private) java.util.List<MojoParameter> |
loadMojoParameters(org.apache.maven.plugin.descriptor.PluginDescriptor desc,
org.apache.maven.plugin.descriptor.MojoDescriptor mojo,
PlexusConfigHelper helper,
org.eclipse.core.runtime.IProgressMonitor monitor) |
(package private) java.util.List<MojoParameter> |
loadMojoParameters(org.apache.maven.plugin.descriptor.PluginDescriptor desc,
java.lang.String goal,
org.eclipse.core.runtime.IProgressMonitor monitor) |
(package private) <T> T |
lookup(java.lang.Class<T> clazz) |
private static IMojoParameterMetadata |
readMojoParameterMetadata(java.lang.String mojoConfigurator) |
private static final org.slf4j.Logger log
private static final com.google.common.cache.Cache<java.lang.String,MojoParameter> cache
protected final MavenImpl maven
public static final java.lang.String EXTENSION_MOJO_PARAMETER_METADATA
private static final java.util.Map<java.lang.String,MojoParameter> PREDEF
@Deprecated public MojoParameter getClassConfiguration(ArtifactKey pluginKey, java.lang.String className, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
getClassConfiguration in interface IMojoParameterMetadataProviderorg.eclipse.core.runtime.CoreException@Deprecated public MojoParameter getMojoConfiguration(ArtifactKey pluginKey, java.util.Collection<java.lang.String> mojos, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
getMojoConfiguration in interface IMojoParameterMetadataProviderorg.eclipse.core.runtime.CoreException@Deprecated public MojoParameter getMojoConfiguration(ArtifactKey pluginKey, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
getMojoConfiguration in interface IMojoParameterMetadataProviderorg.eclipse.core.runtime.CoreException@Deprecated public MojoParameter getMojoConfiguration(ArtifactKey pluginKey, java.lang.String mojo, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
getMojoConfiguration in interface IMojoParameterMetadataProviderorg.eclipse.core.runtime.CoreExceptionpublic MojoParameter getClassConfiguration(ArtifactKey pluginKey, java.lang.String className) throws org.eclipse.core.runtime.CoreException
IMojoParameterMetadataProvidergetClassConfiguration in interface IMojoParameterMetadataProviderorg.eclipse.core.runtime.CoreExceptionpublic MojoParameter getMojoConfiguration(ArtifactKey pluginKey, java.util.Collection<java.lang.String> mojos) throws org.eclipse.core.runtime.CoreException
IMojoParameterMetadataProvidergetMojoConfiguration in interface IMojoParameterMetadataProviderorg.eclipse.core.runtime.CoreExceptionpublic MojoParameter getMojoConfiguration(ArtifactKey pluginKey) throws org.eclipse.core.runtime.CoreException
IMojoParameterMetadataProvidergetMojoConfiguration in interface IMojoParameterMetadataProviderorg.eclipse.core.runtime.CoreExceptionpublic MojoParameter getMojoConfiguration(ArtifactKey pluginKey, java.lang.String mojo) throws org.eclipse.core.runtime.CoreException
IMojoParameterMetadataProvidergetMojoConfiguration in interface IMojoParameterMetadataProviderorg.eclipse.core.runtime.CoreExceptionjava.util.List<MojoParameter> loadMojoParameters(org.apache.maven.plugin.descriptor.PluginDescriptor desc, java.lang.String goal, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionprivate MojoParameter getPredefined(ArtifactKey pluginKey)
<T> T execute(ArtifactKey pluginKey, ICallable<T> callable) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionorg.apache.maven.project.MavenProject getProject(IMavenExecutionContext context)
org.apache.maven.plugin.descriptor.PluginDescriptor getPluginDescriptor(ArtifactKey pluginKey, IMavenExecutionContext context, org.eclipse.core.runtime.IProgressMonitor monitor)
<T> T lookup(java.lang.Class<T> clazz)
throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionjava.util.List<MojoParameter> loadMojoParameters(org.apache.maven.plugin.descriptor.PluginDescriptor desc, org.apache.maven.plugin.descriptor.MojoDescriptor mojo, PlexusConfigHelper helper, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreExceptionprivate static IMojoParameterMetadata readMojoParameterMetadata(java.lang.String mojoConfigurator)