Class GuiceClassPathBinder
- java.lang.Object
-
- org.opendaylight.infrautils.inject.guice.GuiceClassPathBinder
-
public class GuiceClassPathBinder extends Object
Binds interfaces to implementations in Guice by scanning the classpath.
-
-
Constructor Summary
Constructors Constructor Description GuiceClassPathBinder(String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindAllSingletons(String prefix, com.google.inject.Binder binder)
Binds allSingleton
annotated classes discovered by scanning the class path to all their interfaces.
-
-
-
Constructor Detail
-
GuiceClassPathBinder
public GuiceClassPathBinder(String prefix)
-
-
Method Detail
-
bindAllSingletons
public void bindAllSingletons(String prefix, com.google.inject.Binder binder)
Binds allSingleton
annotated classes discovered by scanning the class path to all their interfaces.- Parameters:
prefix
- the package prefix of Singleton implementations to considerbinder
- The binder to set up.
-
-