Enable module installation from class instead of instance

26 views
Skip to first unread message

G Gar

unread,
Jan 6, 2021, 10:40:19 PM1/6/21
to google-guice
Hi,

I am wondering if there is a posibility to add an option to install another Module just by indicating it's class, e.g:

public class MyModule extends AbstractModule {
    @Override protected void configure() {
        install(AnotherModule.class);
    }
}


Reply all
Reply to author
Forward
0 new messages