Class GuiceClassPathBinder


  • public class GuiceClassPathBinder
    extends Object
    Binds interfaces to implementations in Guice by scanning the classpath.
    • Constructor Detail

      • GuiceClassPathBinder

        public GuiceClassPathBinder​(String prefix)
    • Method Detail

      • bindAllSingletons

        public void bindAllSingletons​(String prefix,
                                      com.google.inject.Binder binder)
        Binds all Singleton annotated classes discovered by scanning the class path to all their interfaces.
        Parameters:
        prefix - the package prefix of Singleton implementations to consider
        binder - The binder to set up.