[ http://issues.apache.org/struts/browse/WW-1329?page=all ]

Emmanuel Venisse updated WW-1329:
---------------------------------

    Attachment: plexus2.patch

This new patch include the previous and fix the plexus child container 
initialization

> Add the possibility to use the role-hint tag in plexus configuration
> --------------------------------------------------------------------
>
>          Key: WW-1329
>          URL: http://issues.apache.org/struts/browse/WW-1329
>      Project: Struts Action 2
>         Type: Improvement

>   Components: Component Management
>     Versions: WW 2.2.1
>     Reporter: Emmanuel Venisse
>      Fix For: 2.0
>  Attachments: plexus.patch, plexus2.patch
>
> Actually, the plexus integration allow only to use the classname, defined in 
> xwork.xml, in the role tag of the plexus component configuration like this:
> In xwork.xml:
> {noformat}
>         <action name="Hello" class="com.acme.MyAction">
>             <result name="success" type="dispatcher">
>                 <param name="location">/success.jsp</param>
>             </result>
>         </action>
> {noformat}
> In plexus-*.xml:
> {noformat}
>     <component>
>       <role>com.acme.MyAction</role>
>       <implementation>com.acme.MyAction</implementation>
>     </component>
> {noformat}
> With this patch, it will be possible to define the classname in one place and 
> to use the role-hint tag of plexus configuration like this:
> In xwork.xml:
> {noformat}
>         <action name="Hello" class="myAction">
>             <result name="success" type="dispatcher">
>                 <param name="location">/success.jsp</param>
>             </result>
>         </action>
> {noformat}
> In plexus-*.xml:
> {noformat}
>     <component>
>       <role>com.opensymphony.xwork.Action</role>
>       <role-hint>myAction</role-hint>
>       <implementation>com.acme.MyAction</implementation>
>     </component>
> {noformat}
> This mechanism works for Action, Interceptor, Result and Validator.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to