A much better way to do this is to:
1) Ask the user to create an interface for each of its custom places. These
interfaces should extend Place.
2) Have the user create an implementation class for this custom place
interface.
3) Have the user bind the interface with the implementation in the gin
module, and add the corresponding provider function in the ginjector.
4) Have the user mark the proxy as inheriting from its custom place
interface (instead of place)
5) When generating the custom ProxyPlace, create an instance of the custom
place implementation using the ginjector. (We will have to look for the
right method.)
6) In the generated ProxyPlace forward calls to all methods defined in the
custom Place to the implementation.
use dependency injection (through the ginjector)
Original issue reported on code.google.com by philippe.beaudoin on 1 Apr 2010 at 6:35
Original issue reported on code.google.com by
philippe.beaudoin
on 1 Apr 2010 at 6:35