get RID of plexus.requirement annotation

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1165523 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-09-06 07:22:48 +00:00
parent 113fa60beb
commit 3929d7d7df
13 changed files with 17 additions and 106 deletions

View File

@ -48,15 +48,10 @@ public class DependencyTree
{ {
private Logger log = LoggerFactory.getLogger( DependencyTree.class ); private Logger log = LoggerFactory.getLogger( DependencyTree.class );
/**
* plexus.requirement role-hint="maven2"
*/
@Inject @Inject
private DependencyTreeBuilder dependencyTreeBuilder; private DependencyTreeBuilder dependencyTreeBuilder;
/**
* plexus.requirement
*/
@Inject @Inject
private UserRepositories userRepositories; private UserRepositories userRepositories;

View File

@ -56,15 +56,10 @@ public abstract class AbstractActionSupport
protected Logger log = LoggerFactory.getLogger( getClass() ); protected Logger log = LoggerFactory.getLogger( getClass() );
/**
* plexus.requirement role="org.apache.archiva.audit.AuditListener"
*/
@Inject @Inject
private List<AuditListener> auditListeners = new ArrayList<AuditListener>(); private List<AuditListener> auditListeners = new ArrayList<AuditListener>();
/**
* plexus.requirement
*/
@Inject @Inject
@Named( value = "repositorySessionFactory" ) @Named( value = "repositorySessionFactory" )
protected RepositorySessionFactory repositorySessionFactory; protected RepositorySessionFactory repositorySessionFactory;

View File

@ -31,9 +31,7 @@ import java.util.List;
public class AbstractRepositoryBasedAction public class AbstractRepositoryBasedAction
extends AbstractActionSupport extends AbstractActionSupport
{ {
/**
* plexus.requirement
*/
@Inject @Inject
private UserRepositories userRepositories; private UserRepositories userRepositories;

View File

@ -103,27 +103,15 @@ public class DeleteArtifactAction
*/ */
private List<String> managedRepos; private List<String> managedRepos;
/**
* plexus.requirement
*/
@Inject @Inject
private UserRepositories userRepositories; private UserRepositories userRepositories;
/**
* plexus.requirement role-hint="default"
*/
@Inject @Inject
private ArchivaConfiguration configuration; private ArchivaConfiguration configuration;
/**
* plexus.requirement
*/
@Inject @Inject
private RepositoryContentFactory repositoryFactory; private RepositoryContentFactory repositoryFactory;
/**
* plexus.requirement role="org.apache.archiva.repository.events.RepositoryListener"
*/
@Inject @Inject
private List<RepositoryListener> listeners; private List<RepositoryListener> listeners;

View File

@ -45,7 +45,7 @@ import javax.inject.Inject;
import javax.inject.Named; import javax.inject.Named;
/** /**
* plexus.component role="com.opensymphony.xwork2.Action" role-hint="mergeAction" instantiation-strategy="per-lookup" *
*/ */
@Controller( "mergeAction" ) @Controller( "mergeAction" )
@Scope( "prototype" ) @Scope( "prototype" )
@ -54,16 +54,11 @@ public class MergeAction
implements Validateable, Preparable, Auditable implements Validateable, Preparable, Auditable
{ {
/**
* plexus.requirement role="org.apache.archiva.stagerepository.merge.RepositoryMerger" role-hint="maven2"
*/
@Inject @Inject
@Named( value = "repositoryMerger#maven2" ) @Named( value = "repositoryMerger#maven2" )
private Maven2RepositoryMerger repositoryMerger; private Maven2RepositoryMerger repositoryMerger;
/**
* plexus.requirement
*/
@Inject @Inject
protected ArchivaConfiguration archivaConfiguration; protected ArchivaConfiguration archivaConfiguration;

View File

@ -61,8 +61,6 @@ import javax.inject.Inject;
* *
* TODO change name to ShowVersionedAction to conform to terminology. * TODO change name to ShowVersionedAction to conform to terminology.
* *
* plexus.component role="com.opensymphony.xwork2.Action" role-hint="showArtifactAction"
* instantiation-strategy="per-lookup"
*/ */
@SuppressWarnings( "serial" ) @SuppressWarnings( "serial" )
@Controller( "showArtifactAction" ) @Controller( "showArtifactAction" )
@ -73,9 +71,6 @@ public class ShowArtifactAction
{ {
/* .\ Not Exposed \._____________________________________________ */ /* .\ Not Exposed \._____________________________________________ */
/**
* plexus.requirement
*/
@Inject @Inject
private RepositoryContentFactory repositoryFactory; private RepositoryContentFactory repositoryFactory;

View File

@ -76,8 +76,6 @@ import java.util.TimeZone;
/** /**
* Upload an artifact using Jakarta file upload in webwork. If set by the user a pom will also be generated. Metadata * Upload an artifact using Jakarta file upload in webwork. If set by the user a pom will also be generated. Metadata
* will also be updated if one exists, otherwise it would be created. * will also be updated if one exists, otherwise it would be created.
* <p/>
* plexus.component role="com.opensymphony.xwork2.Action" role-hint="uploadAction" instantiation-strategy="per-lookup"
*/ */
@SuppressWarnings( "serial" ) @SuppressWarnings( "serial" )
@Controller( "uploadAction" ) @Controller( "uploadAction" )
@ -136,27 +134,15 @@ public class UploadAction
*/ */
private List<String> managedRepoIdList; private List<String> managedRepoIdList;
/**
* plexus.requirement
*/
@Inject @Inject
private UserRepositories userRepositories; private UserRepositories userRepositories;
/**
* plexus.requirement role-hint="default"
*/
@Inject @Inject
private ArchivaConfiguration configuration; private ArchivaConfiguration configuration;
/**
* plexus.requirement
*/
@Inject @Inject
private RepositoryContentFactory repositoryFactory; private RepositoryContentFactory repositoryFactory;
/**
* lexus.requirement role="org.apache.archiva.scheduler.ArchivaTaskScheduler" role-hint="repository"
*/
@Inject @Inject
@Named( value = "archivaTaskScheduler#repository" ) @Named( value = "archivaTaskScheduler#repository" )
private ArchivaTaskScheduler scheduler; private ArchivaTaskScheduler scheduler;

View File

@ -47,19 +47,11 @@ public class SystemStatusAction
extends AbstractActionSupport extends AbstractActionSupport
implements SecureAction implements SecureAction
{ {
/**
* plexus.requirement role="org.codehaus.plexus.taskqueue.TaskQueue"
*/
private Map<String, TaskQueue> queues; private Map<String, TaskQueue> queues;
/**
* plexus.requirement role="org.codehaus.plexus.cache.Cache"
*/
private Map<String, Cache> caches; private Map<String, Cache> caches;
/**
* plexus.requirement
*/
@Inject @Inject
private RepositoryScanner scanner; private RepositoryScanner scanner;

View File

@ -36,10 +36,7 @@ public abstract class AbstractAppearanceAction
extends AbstractActionSupport extends AbstractActionSupport
implements Preparable implements Preparable
{ {
/**
* Archiva Application Configuration
* plexus.requirement
*/
@Inject @Inject
protected ArchivaConfiguration configuration; protected ArchivaConfiguration configuration;

View File

@ -48,34 +48,17 @@ public abstract class AbstractProxyConnectorFormAction
implements Preparable implements Preparable
{ {
/**
* plexus.requirement role="org.apache.maven.archiva.policies.PreDownloadPolicy"
*/
private Map<String, PreDownloadPolicy> preDownloadPolicyMap; private Map<String, PreDownloadPolicy> preDownloadPolicyMap;
/**
* plexus.requirement role="org.apache.maven.archiva.policies.PostDownloadPolicy"
*/
private Map<String, PostDownloadPolicy> postDownloadPolicyMap; private Map<String, PostDownloadPolicy> postDownloadPolicyMap;
/**
* plexus.requirement role="org.apache.maven.archiva.policies.DownloadErrorPolicy"
*/
private Map<String, DownloadErrorPolicy> downloadErrorPolicyMap; private Map<String, DownloadErrorPolicy> downloadErrorPolicyMap;
/**
* The list of network proxy ids that are available.
*/
private List<String> proxyIdOptions; private List<String> proxyIdOptions;
/**
* The list of managed repository ids that are available.
*/
private List<String> managedRepoIdList; private List<String> managedRepoIdList;
/**
* The list of remove repository ids that are available.
*/
private List<String> remoteRepoIdList; private List<String> remoteRepoIdList;
/** /**

View File

@ -49,15 +49,10 @@ public class AddLegacyArtifactPathAction
extends AbstractActionSupport extends AbstractActionSupport
implements Preparable, Validateable implements Preparable, Validateable
{ {
/**
* plexus.requirement
*/
@Inject @Inject
private ArchivaConfiguration archivaConfiguration; private ArchivaConfiguration archivaConfiguration;
/**
* plexus.requirement role-hint="legacy"
*/
@Inject @Inject
@Named(value = "managedRepositoryContent#legacy") @Named(value = "managedRepositoryContent#legacy")
private ManagedRepositoryContent repositoryContent; private ManagedRepositoryContent repositoryContent;

View File

@ -35,16 +35,13 @@ import java.util.Iterator;
* Delete a LegacyArtifactPath to archiva configuration * Delete a LegacyArtifactPath to archiva configuration
* *
* @since 1.1 * @since 1.1
* plexus.component role="com.opensymphony.xwork2.Action" role-hint="deleteLegacyArtifactPathAction" instantiation-strategy="per-lookup"
*/ */
@Controller( "deleteLegacyArtifactPathAction" ) @Controller( "deleteLegacyArtifactPathAction" )
@Scope( "prototype" ) @Scope( "prototype" )
public class DeleteLegacyArtifactPathAction public class DeleteLegacyArtifactPathAction
extends AbstractActionSupport extends AbstractActionSupport
{ {
/**
* plexus.requirement
*/
@Inject @Inject
private ArchivaConfiguration archivaConfiguration; private ArchivaConfiguration archivaConfiguration;

View File

@ -47,8 +47,7 @@ import java.util.Date;
import java.util.List; import java.util.List;
/** /**
* plexus.component role="com.opensymphony.xwork2.Action" role-hint="viewAuditLogReport" *
* instantiation-strategy="per-lookup"
*/ */
@Controller( "viewAuditLogReport" ) @Controller( "viewAuditLogReport" )
@Scope( "prototype" ) @Scope( "prototype" )
@ -58,12 +57,12 @@ public class ViewAuditLogReportAction
{ {
protected HttpServletRequest request; protected HttpServletRequest request;
/**
* plexus.requirement
*/
@Inject @Inject
private UserRepositories userRepositories; private UserRepositories userRepositories;
@Inject
private AuditManager auditManager;
private String repository; private String repository;
private List<String> repositories; private List<String> repositories;
@ -95,14 +94,10 @@ public class ViewAuditLogReportAction
private static final String HEADER_RESULTS = "Results"; private static final String HEADER_RESULTS = "Results";
private String[] datePatterns = private String[] datePatterns =
new String[]{ "MM/dd/yy", "MM/dd/yyyy", "MMMMM/dd/yyyy", "MMMMM/dd/yy", "dd MMMMM yyyy", "dd/MM/yy", new String[]{ "MM/dd/yy", "MM/dd/yyyy", "MMMMM/dd/yyyy", "MMMMM/dd/yy", "dd MMMMM yyyy", "dd/MM/yy",
"dd/MM/yyyy", "yyyy/MM/dd", "yyyy-MM-dd", "yyyy-dd-MM", "MM-dd-yyyy", "MM-dd-yy" }; "dd/MM/yyyy", "yyyy/MM/dd", "yyyy-MM-dd", "yyyy-dd-MM", "MM-dd-yyyy", "MM-dd-yy" };
/**
* plexus.requirement
*/
@Inject
private AuditManager auditManager;
public SecureActionBundle getSecureActionBundle() public SecureActionBundle getSecureActionBundle()
throws SecureActionException throws SecureActionException