beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Diephouse (JIRA)" <beehive-...@incubator.apache.org>
Subject [jira] Created: (BEEHIVE-152) Control Extensions don't work with Extensible controls
Date Tue, 04 Jan 2005 21:30:12 GMT
Control Extensions don't work with Extensible controls
------------------------------------------------------

         Key: BEEHIVE-152
         URL: http://issues.apache.org/jira/browse/BEEHIVE-152
     Project: Beehive
        Type: Bug
  Components: Controls  
    Versions: V1Beta    
    Reporter: Dan Diephouse


'm working on the XFire control a bit more and I am having troubles using events from a control
which extends it.  In this case I have the AmazonClientControl interface which extends the
XFireClientControl (which implements Extensible).  Here's how I declare my EventHandlers:

   @EventHandler(field="amazon",
                 eventSet=XFireClientControl.EndInvokeCallback.class,
                 eventName="endInvoke")
   public void endInvoke( XmlObject[] response, XmlObject[] responseHeaders )
   {
       receivedResponse = true;
       this.response = (ItemLookupResponseDocument) response[0];
   }
     @EventHandler(field="amazon",
                 eventSet=XFireClientControl.EndInvokeCallback.class,
                 eventName="handleFault")
   public void handleFault( XFireFault fault )
   {
       receivedResponse = true;
   }

However, APT gives me this:

   [apt] Compiling 2 source files to C:\eclipse\workspace\ch-amazon\target\test-classes
   [apt] warning: Annotation types without processors: [org.apache.beehive.controls.api.events.EventHandler]
   [apt] C:\eclipse\workspace\ch-amazon\src\test\org\controlhaus\amazon\AmazonClientTest.java:102:
Cannot find EventSet interface: org.controlhaus.xfire.client.XFireClientControl.EndInvokeCallback
   [apt]     public void handleFault( XFireFault fault )
   [apt]                 ^
   [apt] C:\eclipse\workspace\ch-amazon\src\test\org\controlhaus\amazon\AmazonClientTest.java:93:
Cannot find EventSet interface: org.controlhaus.xfire.client.XFireClientControl.EndInvokeCallback
   [apt]     public void endInvoke( XmlObject[] response, XmlObject[] responseHeaders )
   [apt]                 ^
   [apt] 2 errors
   [apt] 1 warning

The XFireClientControl interface looks like so:

public interface XfireClientControl
{
    @EventSet
    public interface EndInvokeCallback 
    {
        public void endInvoke( XmlObject[] response, XmlObject[] responseHeaders );
        
        public void handleFault( XFireFault fault );
    }
....
...
}


-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message