Re: dependency injection in solr

2011-08-30 Thread Federico Fissore
Tomás Fernández Löbbe, il 29/08/2011 20:32, ha scritto: You can use reflection to instantiate the correct object (specify the class name on the parameter on the solrconfig and then invoke the constructor via reflection). You'll have to manage the life-cycle of your object yourself. If I understan

Re: dependency injection in solr

2011-08-29 Thread Federico Fissore
Tomás Fernández Löbbe, il 29/08/2011 17:58, ha scritto: I think I get it. Many of the objects that depend on the configuration are instantiated by using reflection, is that an option for you? yes it is what do you propose?

Re: dependency injection in solr

2011-08-29 Thread Tomás Fernández Löbbe
You can use reflection to instantiate the correct object (specify the class name on the parameter on the solrconfig and then invoke the constructor via reflection). You'll have to manage the life-cycle of your object yourself. If I understand your requirement, you probably have created a SearchComp

Re: dependency injection in solr

2011-08-29 Thread Federico Fissore
Tomás Fernández Löbbe, il 29/08/2011 17:58, ha scritto: I think I get it. Many of the objects that depend on the configuration are instantiated by using reflection, is that an option for you? yes it is what do you propose?

Re: dependency injection in solr

2011-08-29 Thread Tomás Fernández Löbbe
I think I get it. Many of the objects that depend on the configuration are instantiated by using reflection, is that an option for you? On Mon, Aug 29, 2011 at 12:33 PM, Federico Fissore wrote: > Tomás Fernández Löbbe, il 29/08/2011 16:39, ha scritto: > > You can do a lot of dependency inj

Re: dependency injection in solr

2011-08-29 Thread Federico Fissore
Tomás Fernández Löbbe, il 29/08/2011 16:39, ha scritto: You can do a lot of dependency injection though solrconfig.xml and schema.xml, Specify search components, update processors, filters, similarity, etc. Solr doesn't use any DI framework, everything is built-in in a pluggable manner. What kind

Re: dependency injection in solr

2011-08-29 Thread Tomás Fernández Löbbe
You can do a lot of dependency injection though solrconfig.xml and schema.xml, Specify search components, update processors, filters, similarity, etc. Solr doesn't use any DI framework, everything is built-in in a pluggable manner. What kind of customizations do you need to apply? maybe we can poin

dependency injection in solr

2011-08-29 Thread Federico Fissore
Hello everyone I need to hack solr by adding a couple custom search components. One small inconvenience is about configuring all the stuff. AFAIK solrconfig.xml is not a place where to do dependency injection, not yet at least. Have you ever had the need to use DI on a solr configuration? How