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]