Class DependentScopeModule

  • All Implemented Interfaces:
    com.google.inject.Module

    @Named
    public class DependentScopeModule
    extends com.google.inject.AbstractModule
    A handler for @Dependent scoped beans used by sisu-guice.

    The DefaultPlexusContainer created by MavenEmbedderUtils for KIE's programmatic use of maven-core and Aether tries to wire-up all beans on the classpath. The KIE Workbenches contain @Dependent classes defining client-side Uberfire Perspective definitions. These are filtered from the webapp WARs as they are client-side only and handled by Errai's CDI implementation; however when ran from within an IDE the classes exist on the classpath and sisu-guice fails to bind @Dependent scope.

    This class is a work-around for running the KIE Workbenches in GWT Hosted Mode.

    See https://github.com/sonatype/sisu-guice/issues/10

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void configure()  
      • Methods inherited from class com.google.inject.AbstractModule

        addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
    • Constructor Detail

      • DependentScopeModule

        public DependentScopeModule()
    • Method Detail

      • configure

        protected void configure()
        Specified by:
        configure in class com.google.inject.AbstractModule