KIE :: CI 6.2.0.CR1

org.kie.scanner
Class DependentScopeModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.kie.scanner.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


Constructor Summary
DependentScopeModule()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DependentScopeModule

public DependentScopeModule()
Method Detail

configure

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

KIE :: CI 6.2.0.CR1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.