Replacing the GetResult / SearchResult impl. via DI?

Hey folks,

I'm using the Java client on an embedded running server (on a Wildfly 8,
standalone-full). To make my life easier for my usecase, I want to
implement a Result that is capable of using my gson provider (CDI) together
with a classname to get me the source not only as string, but as my bean of
choice. Is there any common way to overload the result set (maybe using
guice?) to make this possible to implement?

The hard way would be to write a delegating proxy for each step ... this
would work, but feels clumsy and is not a good architectural decision at
all.

Thanks for any hint!
Mario

--
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/60aca4c9-8bea-49aa-a3fc-732f67cb39fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.