Plugin datasource singleton

Hi,
I have query parser plugin. This plugin also implements transport action.
Both: query parser and transport action should share the same data source
object (with cache).

Unfortunately when I run a query and parser is called I see one instance of
data source. When transport action is called I see another instance of data
source.
I'd like to be able to see the same data source instance because transport
action is responsible for cache management. This cache should be used by
query parser

Plugin has implemented method 'indexModules'

@Override
public Collection<Class<? extends Module>> indexModules() {
    Collection<Class<? extends Module>> modules = newArrayList();

    modules.add(CustomParserModule.class);

    return modules;
}

and CustomParserModule has implmeneted method conifugre

@Override
protected void configure() {
bind(RegisterBaseFilterParser.class).asEagerSingleton();
bind(DataService.class).asEagerSingleton();
}

What am I doing wrong?

--
Paweł

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAF9ZkbN98LtohNAzz-vPQzENZ7W7AkBZPdYvkAeKdgr5HDUwUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.