Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BD9398FE for ; Wed, 28 Mar 2012 17:30:07 +0000 (UTC) Received: (qmail 32417 invoked by uid 500); 28 Mar 2012 17:30:07 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 32395 invoked by uid 500); 28 Mar 2012 17:30:06 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 32385 invoked by uid 99); 28 Mar 2012 17:30:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 17:30:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of brunorene@holos.pt designates 193.126.127.18 as permitted sender) Received: from [193.126.127.18] (HELO mail.holos.pt) (193.126.127.18) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 17:29:58 +0000 Received: (qmail 23372 invoked from network); 28 Mar 2012 17:29:33 -0000 Received: from mail-ee0-f43.google.com (brd@[74.125.83.43]) (envelope-sender ) by mail.holos.pt (qmail-ldap-1.03) with RC4-SHA encrypted SMTP for ; 28 Mar 2012 17:29:33 -0000 Received: by eekc13 with SMTP id c13so602122eek.16 for ; Wed, 28 Mar 2012 10:29:30 -0700 (PDT) Received: by 10.14.201.67 with SMTP id a43mr4259566eeo.110.1332955770462; Wed, 28 Mar 2012 10:29:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.11.18 with HTTP; Wed, 28 Mar 2012 10:29:10 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Bruno_Ren=C3=A9_Santos?= Date: Wed, 28 Mar 2012 18:29:10 +0100 Message-ID: Subject: Re: Cayenne 3.1 DI - binding To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=047d7b343dd033235604bc50f3fd --047d7b343dd033235604bc50f3fd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi John, Ups I missed the Adapter Tab on the Node on Modeler... What about entity sorters? How can I put my own EntitySorter? Regards Bruno On Wed, Mar 28, 2012 at 5:38 PM, John Huss wrote: > For extended types you can just do it in your application startup code, n= ot > in the DI module. For me that's in the init method of my HessianServlet > subclass. I don't think there is any DI binding for it. > > For the adapters you could do the same thing. There is also a way to loa= d > the adapter configuration from a properties file, but I don't have the > specifics right now since the property names changed recently. Or you ca= n > set it in CayenneModeler. > > John > > On Wed, Mar 28, 2012 at 10:50 AM, Bruno Ren=C3=A9 Santos >wrote: > > > Hello all, > > > > I am migrating my apps to cayenne 3.1 and I have some doubts: > > > > I have already created a Module to bind implementations: > > > > public class CayenneModule implements Module { > > > > @Override > > public void configure(Binder binder) { > > binder.bind(ObjectContextFactory.class).toInstance(new > > HolosContextFactory()); > > } > > } > > > > I noticed now that the 3.0 DBAdapters are gone from the Modeler and so > How > > can I: > > > > 1. Bind these adapters > > 2. Bind ExtendedTypes > > > > Can I include these new bindings on the same Module? > > > > Regards > > Bruno Santos > > > > -- > > Bruno Ren=C3=A9 Santos | brunorene@holos.pt | Gestor de Projectos | Ana= lista > | > > Programador | Investigador > > > > Holos - Solu=C3=A7=C3=B5es Avan=C3=A7adas em Tecnologias de Informa=C3= =A7=C3=A3o S.A. > > Parque de Ci=C3=AAncia e Tecnologia de Almada/Set=C3=BAbal . Edif=C3=AD= cio Madan Parque > > Rua dos Inventores . Quinta da Torre . 2825 - 182 Caparica . Portugal > > Phone: +351 210 438 686 . Fax: +351 210 438 687 . Web: www.holos.pt > > > > This email and any files transmitted with it are confidential and > intended > > solely for the use of the individual or entity to whom they are > addressed. > > If you are not the intended recipient or the person responsible for > > delivering the email to the intended recipient, be advised that you hav= e > > received this email in error and that any use, dissemination, forwardin= g, > > printing, or copying of this email is strictly prohibited. If you have > > received this email in error please notify Bruno Ren=C3=A9 Santos by te= lephone > > on +351 210 438 686 > > > --=20 Bruno Ren=C3=A9 Santos | brunorene@holos.pt | Gestor de Projectos | Analist= a | Programador | Investigador Holos - Solu=C3=A7=C3=B5es Avan=C3=A7adas em Tecnologias de Informa=C3=A7= =C3=A3o S.A. Parque de Ci=C3=AAncia e Tecnologia de Almada/Set=C3=BAbal . Edif=C3=ADcio = Madan Parque Rua dos Inventores . Quinta da Torre . 2825 - 182 Caparica . Portugal Phone: +351 210 438 686 . Fax: +351 210 438 687 . Web: www.holos.pt This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify Bruno Ren=C3=A9 Santos by teleph= one on +351 210 438 686 --047d7b343dd033235604bc50f3fd--