Return-Path: Delivered-To: apmail-tapestry-commits-archive@minotaur.apache.org Received: (qmail 79797 invoked from network); 30 Jul 2009 01:33:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Jul 2009 01:33:37 -0000 Received: (qmail 6000 invoked by uid 500); 30 Jul 2009 01:33:37 -0000 Delivered-To: apmail-tapestry-commits-archive@tapestry.apache.org Received: (qmail 5934 invoked by uid 500); 30 Jul 2009 01:33:37 -0000 Mailing-List: contact commits-help@tapestry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tapestry.apache.org Delivered-To: mailing list commits@tapestry.apache.org Received: (qmail 5925 invoked by uid 99); 30 Jul 2009 01:33:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 01:33:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jul 2009 01:33:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C5C19234C044 for ; Wed, 29 Jul 2009 18:33:14 -0700 (PDT) Message-ID: <283257398.1248917594798.JavaMail.jira@brutus> Date: Wed, 29 Jul 2009 18:33:14 -0700 (PDT) From: "Taylor Mathewson (JIRA)" To: commits@tapestry.apache.org Subject: [jira] Created: (TAP5-799) Overriden Service Injected Into Page via @Inject Loses Decoration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Overriden Service Injected Into Page via @Inject Loses Decoration ----------------------------------------------------------------- Key: TAP5-799 URL: https://issues.apache.org/jira/browse/TAP5-799 Project: Tapestry 5 Issue Type: Bug Components: tapestry-ioc Affects Versions: 5.1.0.5 Reporter: Taylor Mathewson I have a Core Module which binds a service impl to an interface, and decorates it (hibernate transaction decorator, and a couple of custom things) I have page beans which reference the service, e.g.: @Inject private SomeService someService; Everything works fine up to this point. I add in an Extension Module, which refers to the Core Module as a submodule, and overrides the service impl, e.g.: public static void contributeServiceOverride(MappedConfiguration configuration, ObjectLocator locator) { configuration.add(SomeService.class, locator.proxy(SomeService.class, ExtendedSomeServiceImpl.class)); } My services all get the right stuff, but the pages get the extended service impl without any decoration. This can be worked around by the following: @InjectService("SomeService") private SomeService someService; Workaround is cumbersome and loses the elegance of injection by type. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.