I'm not sure if IUYC, but what about something like

public class GraphApp {
@Inject
GraphApp(GraphViever gv, GraphStructure gs, GraphAlgorithms ga) {...}
}

public class GraphStructure {
@Inject
GraphStructure(GraphReader gr, GraphLayouter gl, ....) {...}
}

The big advantage of using Guice is the flexibility you get when
composing your application. You can easily switch implementations, which
is especially useful for testing.


On 10-07-07 12:44, Jerem's wrote:
> Hello.
> 
> I am a new user of google Guice.
> 
> I read in the documentation that Google guice is useful to make link
> between client and services.
> but is it useful to use google guice in a data structure?
> 
> for example my data structure is a graph : (graph, node, port, edge).
> 
> I have many services :
> create a graphical view of the graph;
> find the shorter path between to nodes;
> find different pattern in the graph;
> etc.
> 
> And how can I make link between services and the graph.
> 
> I am sorry if my question looks like stupid, but google guice is still
> not clear in my mind.
> 
> 
> Jérémie
> 

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en.

Reply via email to