use the role based defaults to set the instantiation strategy for all actions

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@421312 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Porter 2006-07-12 16:37:06 +00:00
parent 4a36b8e50d
commit 5c970ed39e
3 changed files with 8 additions and 2 deletions

View File

@ -169,6 +169,12 @@
<configuration> <configuration>
<fileName>plexus.xml</fileName> <fileName>plexus.xml</fileName>
<containerDescriptor>true</containerDescriptor> <containerDescriptor>true</containerDescriptor>
<roleDefaults>
<roleDefault>
<role>com.opensymphony.xwork.Action</role>
<instantiation-strategy>per-lookup</instantiation-strategy>
</roleDefault>
</roleDefaults>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>

View File

@ -37,7 +37,7 @@ import java.util.Map;
/** /**
* Searches for searchString in all indexed fields. * Searches for searchString in all indexed fields.
* *
* @plexus.component role="com.opensymphony.xwork.Action" role-hint="quickSearchAction" instantiation-strategy="per-lookup" * @plexus.component role="com.opensymphony.xwork.Action" role-hint="quickSearchAction"
*/ */
public class QuickSearchAction public class QuickSearchAction
extends ActionSupport extends ActionSupport

View File

@ -32,7 +32,7 @@ import java.io.IOException;
/** /**
* Configures the application. * Configures the application.
* *
* @plexus.component role="com.opensymphony.xwork.Action" role-hint="configureAction" instantiation-strategy="per-lookup" * @plexus.component role="com.opensymphony.xwork.Action" role-hint="configureAction"
*/ */
public class ConfigureAction public class ConfigureAction
extends ActionSupport extends ActionSupport