improve the WSM annotation processor to be more Mirror-like and use less 
reflection
-----------------------------------------------------------------------------------

         Key: BEEHIVE-752
         URL: http://issues.apache.org/jira/browse/BEEHIVE-752
     Project: Beehive
        Type: Improvement
  Components: Web Services (181)  
    Versions: V1Alpha, V1Beta, V1    
    Reporter: Eddie O'Neil
     Fix For: TBD


The current WSM annotation processor is obviously JDK 5.0 APT based.  In its 
implementation, though, it uses a cross between reflection and Mirror to do 
annotation processing.  The result is that with this style project:

  src/
    Service.java
    Account.java

where the WSM annotated web service "Service.java" imports the "Account" class, 
the .class file must exist on disk in order for the annotations to be 
processed.  

The result is that WSM projects need to be structured as:

  src/
    Account.java
  src-ws/
    Service.java

so that the src/ directory can be built before src-ws/ to ensure that the 
.class files for required types are available before annotation processing.

One of the goals of Mirror is to allow annotations in source files to be 
processed so that the .class files need not exist.  A nice improvement to the 
WSM annotation processor would be to remove the dependence on reflection and 
replace it with Mirror-only annotation processing.

We should address this at some point after the next Beehive release...

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

Reply via email to