Return-Path: Delivered-To: apmail-beehive-user-archive@www.apache.org Received: (qmail 4123 invoked from network); 4 Oct 2008 14:48:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Oct 2008 14:48:09 -0000 Received: (qmail 69412 invoked by uid 500); 4 Oct 2008 14:48:07 -0000 Delivered-To: apmail-beehive-user-archive@beehive.apache.org Received: (qmail 69393 invoked by uid 500); 4 Oct 2008 14:48:07 -0000 Mailing-List: contact user-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Users" Delivered-To: mailing list user@beehive.apache.org Delivered-To: moderator for user@beehive.apache.org Received: (qmail 43418 invoked by uid 99); 3 Oct 2008 22:29:53 -0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ecgouvea@gmail.com designates 209.85.162.176 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=ukKk+0vA3mb07mZr4/NlpwlFjY6uunuPtR+9e+9DtQk=; b=h0yP805LNb5No1H99Gf5OqYVFw7oEnJJamCLrnNQVl3Jw7R+CSugTnR25Rw5eQ+AAj 4EfTSAjvFaCOJ7q6+PMOSXWFaXdrXi9jMeikjMn/2Np4Hc7igkGPSGc79SNsd3gmSACc rqmNQ4UoL/UEV5Sd3mgFul8zocfv1RnBAnPyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=WBf/qAg9moFtZcxWtfDUFHtgBbmahLZZvfo+QfDyLQ/YUrpLRip6xO/mf+Ps9cI75u s5chsGqQ92ikr+/iGxCbtIVZd6BHO3Yg30PBV29T5xQQm3nxcJ/SeftMtvcXbD7E+hlr d5WAfu0GftPDKGEpJP9AMk0Wx+zwQmp8SLF5M= Message-ID: Date: Fri, 3 Oct 2008 19:29:16 -0300 From: "Eduardo Gouvea" To: user@beehive.apache.org Subject: Extensible Custom Control with invoke method: how to get a reference to the extended bean instance? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_29803_10043566.1223072956287" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_29803_10043566.1223072956287 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm try to implement both a Extensible and its extended Custom Control to log any method invocation issued in a extended custom control instance. I have 2 interfaces and 2 implementations: @ControlInterface ... MyCustomControl { } @ControlImplementation ... MyCustomControlImpl ... implements Extensible ... { public Object invoke(Method m, Object[] args) ... { // How to invoke the method been issued in the extended custom control instance // without losing its state, without instantiate a new bean? return ... } } @ControlExtension @ControlInterface ... MyExtendedCustomControl ...{ public void sayHello(); } @ControlImplementation ... MyExtendedCustomControlImpl ... extends MyCustomControlImpl implements MyCustomControl ... { } public void sayHello() { System.out.println("Hello!"); } } But, given the parameters of the "invoke" method, I'm not able to actually invoke the extended custom control method after logging some information about it. How to get a reference to the extended custom control instance within the "invoke" method in order to call the intercepted method in that instance? Att. Eduardo Gouvea ------=_Part_29803_10043566.1223072956287--