Re: Custom ValueEncoder & IOC

2015-09-14 Thread Thiago H de Paula Figueiredo
On Mon, 14 Sep 2015 10:41:49 -0300, Chris Poulsen wrote: Can't you could just bind it in your app module? Yep! Or also contribute it to the ValueEncoderSource service, so it's automatically picked up by Select and other components. As in any other IoC container, in order to have depende

Re: Custom ValueEncoder & IOC

2015-09-14 Thread Chris Poulsen
Can't you could just bind it in your app module? -- Chris On Mon, Sep 14, 2015 at 3:35 PM, Damon Childs wrote: > How do i get a custom ValueEncoder under control of IOC? > > I have a ValueEncoder that translates a id to a Object from a db. > > public class PropertyTypeEncoder implements > Valu

Custom ValueEncoder & IOC

2015-09-14 Thread Damon Childs
How do i get a custom ValueEncoder under control of IOC? I have a ValueEncoder that translates a id to a Object from a db. public class PropertyTypeEncoder implements ValueEncoder { @Inject private Session session; public PropertyTypeEncoder(Session session) { this.sess