Ok Matt,

    I will try to do it tonight...

Thank's
André Faria

Matt Raible escreveu:
I'd be more than happy to start using annotations in AppFuse where it
makes sense.  If you'd like, you could checkout the Person tutorial
and refactor it to use annotations.  The code is hosted under the
tutorial-struts2 module in SVN.

http://code.google.com/p/appfuse-demos/

The tutorial is on the wiki at http://appfuse.org/display/APF/Using+Struts+2

Thanks,

Matt

On 1/24/07, André Faria <[EMAIL PROTECTED]> wrote:

   I read the WW-1612 Issue
(https://issues.apache.org/struts/browse/WW-1612) , and I would like to
discuss some functionalities that annotations could give us, and if is
possible or interesting to implement that in Struts 2. Please if you
could write what you think about each topic...


1. Interceptor Annotations

        @Interceptors(ValidateInterceptor.class)
        public class PersonAction {}


------------------------------------------------------------------
2. Bijection Annotations


        @In(value="currentPerson", required=false)
        Person person;

        @Out(scope=CONVERSATION, required=false)
        Map <Product, Boolean> searchSelections;


        @Out(scope=SESSSION, required=true)
        List <User> users;

        Is this the proposal of WW-1612 issue?

------------------------------------------------------------------

3. Action Mapping Annotations

   @Action(name="person")
   public class PersonAction(){}

   @Action(name="person.*", method="{1}")
   public class PersonAction(){}

   Before initialize would be necessary to read all the Action classes like the
   Hibernate EntityManager read all the classes with the annotation @Entity to map it.

------------------------------------------------------------------

4. Result Type Annotation

        @Result(name="person.search", type="json")
        public void search(){

        }



Regards,
André Faria

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--
Atenciosamente,
André Faria
BlueSoft Consultoria em Informática
Fone: [55 11] 5543-5406
Web: www.bluesoft.com.br
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to