mirror of https://github.com/apache/archiva.git
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:
parent
113fa60beb
commit
3929d7d7df
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue