PeteGashek / puzzlebazar

Automatically exported from code.google.com/p/puzzlebazar
0 stars 0 forks source link

Automate proxy instantiation #75

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The AbstractPresenterModule.bindPresenter() method should register the proxy 
with some static registry. In its onModuleLoad, the user should call a 
instantiateProxys on this registry.

Original issue reported on code.google.com by philippe.beaudoin on 21 Mar 2010 at 7:35

GoogleCodeExporter commented 8 years ago
The way to do this is probably to have empty constructors, binding the proxys 
.asEagerSingleton(). Then we define some abstract bind() method in the Proxy 
interface 
where the generated class has the right to access the injector. The registry 
call bind 
on all its registered proxys.

Original comment by philippe.beaudoin on 21 Mar 2010 at 7:54

GoogleCodeExporter commented 8 years ago

Original comment by philippe.beaudoin on 22 Mar 2010 at 7:13