Is it possible to tell Guice to call some method (i.e. init()) after instantinating an object of given type?
I look for functionality similar to @PostConstruct annotation in EJB 3.
You can just add the @Inject
annotation to your init()
method. It will get run automatically after the object is instantiated.