Comment by [email protected]:
I've read this page 4 times and I still dont get it.
I've got an object called WorkspaceblockController with a constructor like
such:
@Inject
public WorkspaceBlockController(
EventBus eventBus, //guava event bus, known at binding time
WorkspaceBlockControllerManifest viewBindings, //known at
binding time
GraphViewUtilities graphViewUtilities, //known at binding time
ExperimentNodeDecoder nodeDecoder, //known at binding time
ExperimentNode experimentNode, //known only at run time!!!
mxGraph graph, //known at binding time
Point awtDropLocation) { //known only at run time!!!
So now I'm in my WorkspaceController and I want to new-up a
WorkspaceBlockController with a Point and a node. Right now I've got a big
dumb factory class that manually stiches these things together with guice.
My code becomes
componentFactory.makeWorkspaceBlockControllerWith(point, experimentNode);
but this componentFactory interface is getting loaded with more and more
methods that exist simply because the objects needed for construction arn't
known at the binding time and I cant figure out how to use @AssistedInject.
any help?
For more information:
http://code.google.com/p/google-guice/wiki/AssistedInject
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/groups/opt_out.