o use annos

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@721631 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jason van Zyl 2008-11-29 04:57:52 +00:00
parent 26b3be2096
commit 5f47bbea7f
1 changed files with 15 additions and 27 deletions

View File

@ -80,6 +80,8 @@ import org.apache.maven.reporting.MavenReport;
import org.apache.maven.shared.model.InterpolatorProperty; import org.apache.maven.shared.model.InterpolatorProperty;
import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.PlexusContainer;
import org.codehaus.plexus.classworlds.realm.ClassRealm; import org.codehaus.plexus.classworlds.realm.ClassRealm;
import org.codehaus.plexus.component.annotations.Component;
import org.codehaus.plexus.component.annotations.Requirement;
import org.codehaus.plexus.component.configurator.ComponentConfigurationException; import org.codehaus.plexus.component.configurator.ComponentConfigurationException;
import org.codehaus.plexus.component.configurator.ComponentConfigurator; import org.codehaus.plexus.component.configurator.ComponentConfigurator;
import org.codehaus.plexus.component.configurator.ConfigurationListener; import org.codehaus.plexus.component.configurator.ConfigurationListener;
@ -97,9 +99,7 @@ import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.codehaus.plexus.util.xml.Xpp3DomBuilder; import org.codehaus.plexus.util.xml.Xpp3DomBuilder;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
/** @plexus.component */ @Component(role=PluginManager.class)
//@Component(role=PluginManager.class)
//!!jvz not picked up by the anno processor
public class DefaultPluginManager public class DefaultPluginManager
extends AbstractLogEnabled extends AbstractLogEnabled
implements PluginManager implements PluginManager
@ -115,54 +115,42 @@ public class DefaultPluginManager
RESERVED_GROUP_IDS = rgids; RESERVED_GROUP_IDS = rgids;
} }
//@Requirement @Requirement
/** @plexus.requirement */
protected PlexusContainer container; protected PlexusContainer container;
protected PluginDescriptorBuilder pluginDescriptorBuilder; protected PluginDescriptorBuilder pluginDescriptorBuilder;
//@Requirement @Requirement
/** @plexus.requirement */
protected ArtifactFilterManager coreArtifactFilterManager; protected ArtifactFilterManager coreArtifactFilterManager;
//@Requirement @Requirement
/** @plexus.requirement */
protected PathTranslator pathTranslator; protected PathTranslator pathTranslator;
//@Requirement @Requirement
/** @plexus.requirement */
protected MavenPluginCollector pluginCollector; protected MavenPluginCollector pluginCollector;
//@Requirement @Requirement
/** @plexus.requirement */
protected PluginVersionManager pluginVersionManager; protected PluginVersionManager pluginVersionManager;
//@Requirement @Requirement
/** @plexus.requirement */
protected ArtifactFactory artifactFactory; protected ArtifactFactory artifactFactory;
//@Requirement @Requirement
/** @plexus.requirement */
protected ArtifactResolver artifactResolver; protected ArtifactResolver artifactResolver;
//@Requirement @Requirement
/** @plexus.requirement */
protected ArtifactMetadataSource artifactMetadataSource; protected ArtifactMetadataSource artifactMetadataSource;
//@Requirement @Requirement
/** @plexus.requirement */
protected RuntimeInformation runtimeInformation; protected RuntimeInformation runtimeInformation;
//@Requirement @Requirement
/** @plexus.requirement */
protected MavenProjectBuilder mavenProjectBuilder; protected MavenProjectBuilder mavenProjectBuilder;
//@Requirement @Requirement
/** @plexus.requirement */
protected PluginMappingManager pluginMappingManager; protected PluginMappingManager pluginMappingManager;
//@Requirement @Requirement
/** @plexus.requirement */
private PluginManagerSupport pluginManagerSupport; private PluginManagerSupport pluginManagerSupport;
public DefaultPluginManager() public DefaultPluginManager()