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,
            WorkspaceBlockControllerManifest viewBindings,
            GraphViewUtilities graphViewUtilities,
            ExperimentNodeDecoder nodeDecoder,
            ExperimentNode experimentNode,
            mxGraph graph,
            Point awtDropLocation) {
}}}

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 stitches these things together with guice. My code becomes
{{{

//...
WorkspaceBlockController timeForNewController = componentFactory.makeWorkspaceBlockController(point, node);

//with that methods implementation looking like
public WorkspaceBlockController makeWorkspaceBlockController(Point point, Node node){
    return new WorkspaceBlockController(
        injector.getInstance(EventBus.class),
        injector.getInstance(WorkspaceBlockControllerManifest.class),
        //...
        node,
        point,
}}}

but this componentFactory interface is getting loaded with more and more methods that exist simply because the objects needed for construction aren'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.

Reply via email to