Re: T5 IOC Questions

2009-07-13 Thread Norman Franke
Alas, I just gave up. I wrote my own getClassesFromPackage() instead of using ClassNameLocator and went with that. Seems to work. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 13, 2009, at 3:42 PM, Norman Franke wrote: On Jul 10, 2009, at 6:55 PM, Howard Lewis Sh

Re: T5 IOC Questions

2009-07-13 Thread Norman Franke
On Jul 10, 2009, at 6:55 PM, Howard Lewis Ship wrote: On Fri, Jul 10, 2009 at 3:27 PM, Norman Franke wrote: First, I have a ton of DAOs that I need to bind the interface to the implementation. I'd like to do this automatically, so I don't have to keep modifying my AppModule for each DAO I cr

Re: T5 IOC Questions

2009-07-13 Thread Norman Franke
Not sure what I was doing wrong, but this works when added to my AppModule: public static void bind(ServiceBinder binder) { binder.bind(ActionRenderResponseGenerator.class, MyActionRenderResponseGenerator .class).withId("MyActionRenderResponseGenerator"); } public

Re: T5 IOC Questions

2009-07-10 Thread Norman Franke
On Jul 10, 2009, at 7:08 PM, Norman Franke wrote: On Jul 10, 2009, at 6:55 PM, Howard Lewis Ship wrote: On Fri, Jul 10, 2009 at 3:27 PM, Norman Franke wrote: First, I have a ton of DAOs that I need to bind the interface to the implementation. I'd like to do this automatically, so I don't hav

Re: T5 IOC Questions

2009-07-10 Thread Norman Franke
On Jul 10, 2009, at 6:55 PM, Howard Lewis Ship wrote: On Fri, Jul 10, 2009 at 3:27 PM, Norman Franke wrote: First, I have a ton of DAOs that I need to bind the interface to the implementation. I'd like to do this automatically, so I don't have to keep modifying my AppModule for each DAO I cr

Re: T5 IOC Questions

2009-07-10 Thread Howard Lewis Ship
On Fri, Jul 10, 2009 at 3:27 PM, Norman Franke wrote: > First, I have a ton of DAOs that I need to bind the interface to the > implementation. I'd like to do this automatically, so I don't have to keep > modifying my AppModule for each DAO I create. What's the best way to go > about this? I figure

T5 IOC Questions

2009-07-10 Thread Norman Franke
First, I have a ton of DAOs that I need to bind the interface to the implementation. I'd like to do this automatically, so I don't have to keep modifying my AppModule for each DAO I create. What's the best way to go about this? I figure if I can somehow get a ClassNameLocator instance, I co

Re: T5 IOC questions

2007-07-06 Thread David Avenante
Hummm after debug time I found that impossible to me to add in ordered list the same Id (see class Orderer code). So if it's impossible I need to override the component PageRenderInitializer and all the associated configuration. So I continue my investigation with aliasOveridesService.

Re: T5 IOC questions

2007-07-06 Thread David Avenante
Ok, I continue my investigation. So I think I don't need to override my service but only override my service configuration. So my service is : PageRenderInitializer and my service configuration is : contributePageRenderInitializer( ... As write in the documentation : "The extensibility comes fr

Re: T5 IOC questions

2007-06-18 Thread Howard Lewis Ship
Making contributions to the Alias service can be somewhat tricky, there's a chicken-and-the-egg problem. You're contributing into the Alias service, but the Alias service is used to disambiguate injections ... such as the SymbolSource and AssetSource parameters to the contribution method. That's

Re: T5 IOC questions

2007-06-18 Thread David Avenante
Humm I'm very confuse with your input. The documentation and the tapestry code source don't help me too :( I use the Alias approche like this : public static void contributeAlias(Configuration configuration, final SymbolSource symbolSource, final AssetSourc

Re: T5 IOC questions

2007-06-18 Thread Howard Lewis Ship
You should be getting an error there, ApplicationDefault's configuration is a Map. You override built-in services by contributing to the Alias service (or the AliasOverrides service). On 6/18/07, David Avenante <[EMAIL PROTECTED]> wrote: Hi, I've two questions about the configuration of my ioc

T5 IOC questions

2007-06-18 Thread David Avenante
Hi, I've two questions about the configuration of my ioc container. First i would be able to override the default configuration to use my own DocumentScriptBuilder i've wrote some code in my appModule to try to overide the default config but without succes !!! public static void contributeAppli