berndhopp / guice

guice-integration for the vaadin-framework
https://vaadin.com/directory#!addon/guice-vaadin-integration
10 stars 7 forks source link

Added support for custom Navigator injection #8

Closed peergynt closed 8 years ago

peergynt commented 8 years ago

GuiceNavigator can be extended and used for custom Navigator injection.

berndhopp commented 8 years ago

hmm, as it is now, an instance of GuiceNavigator would be assembled and used. How could you tell guice to assemble your custom class that derives from GuiceNavigator instead?

peergynt commented 8 years ago

Squashed all changes in one commit. I made one more modification after your patch: in ReflectionUtils.java, it looks for the ViewContainer in the sub-classes until it gets to the UI class.