Return-Path: Delivered-To: apmail-jakarta-hivemind-user-archive@www.apache.org Received: (qmail 32216 invoked from network); 17 Oct 2004 11:30:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Oct 2004 11:30:06 -0000 Received: (qmail 54398 invoked by uid 500); 17 Oct 2004 11:30:05 -0000 Delivered-To: apmail-jakarta-hivemind-user-archive@jakarta.apache.org Received: (qmail 54374 invoked by uid 500); 17 Oct 2004 11:30:05 -0000 Mailing-List: contact hivemind-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: hivemind-user@jakarta.apache.org Delivered-To: mailing list hivemind-user@jakarta.apache.org Received: (qmail 54361 invoked by uid 99); 17 Oct 2004 11:30:05 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [203.162.4.185] (HELO HCM-MS-185.vnn.vn) (203.162.4.185) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 17 Oct 2004 04:30:04 -0700 Received: from nbjeff ([203.162.4.10]) by HCM-MS-185.vnn.vn (InterMail vK.4.04.00.00 201-232-137 license 9d3ecd185b7059adcefb4d0866ce835e) with ESMTP id <20041017113001.EFGF260852.HCM-MS-185@nbjeff> for ; Sun, 17 Oct 2004 18:30:01 +0700 From: "Jean-Francois Poilpret" To: Subject: RE: Inner classes as services Date: Sun, 17 Oct 2004 18:30:06 +0700 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcS0OmK923Pf12nFSBuvgRpodCA3CAAAe2Yg In-Reply-To: <20041017111425.DOGW260852.HCM-MS-185@nbjeff> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Message-Id: <20041017113001.EFGF260852.HCM-MS-185@nbjeff> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sorry for the noise, The problem was in my code (I forgot to declare the service implementation class to be "static" inside the Test Case, which justified that Hivemind could not find a no-arg constructor for it;-)) FYI, the following notation must be used in Hivemodule.xml: com.acme.Mytest$MyService Cheers -----Original Message----- From: Jean-Francois Poilpret [mailto:jfpoilpret@hcm.vnn.vn] Sent: Sunday, October 17, 2004 6:14 PM To: hivemind-user@jakarta.apache.org Subject: Inner classes as services Hi all, I am currently writing test cases for a service factory, and in order to have a self-contained test case, I have defined a fake service interface and a fake service implementation class as inner classes inside my test case (with public access). Then when I try to instantiate my service (through the Registry), I have an exception telling that no constructor could be found for my fake service implementation class. In the hivemodule.xml, I tried both class names: com.acme.MyTest.MyService com.acme.Mytest$MyService But both exhibit the same behavior. Is this an unhandled situation in HiveMind, or is there a "trick" to make it work? Finally I had to create my fake interface and implementation as separate files and of course everything is OK then, but it is not very good to separate those from the Test Case. Cheers --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: hivemind-user-help@jakarta.apache.org