@ Override protected void configure ( ) { try { InternalLoggerFactory . setDefaultFactory ( new Slf4JLoggerFactory ( ) ) ; File appRoot = new File ( System . getProperty ( CadmiumListener . BASE_PATH_ENV ) , "maven" ) ; FileUtils . forceMkdir ( appRoot ) ; String remoteMavenRepo = System . getProperty ( MAVEN_REPOSITORY ) ; ArtifactResolver resolver = new ArtifactResolver ( remoteMavenRepo , appRoot . getAbsolutePath ( ) ) ; bind ( ArtifactResolver . class ) . toInstance ( resolver ) ; bind ( JBossAdminApi . class ) ; Multibinder < ConfigurationListener > listenerBinder = Multibinder . newSetBinder ( binder ( ) , ConfigurationListener . class ) ; listenerBinder . addBinding ( ) . to ( JBossAdminApi . class ) ; bind ( IJBossUtil . class ) . to ( JBossDelegator . class ) ; } catch ( Exception e ) { logger . error ( "Failed to initialize maven artifact resolver." , e ) ; } }
Called to do all bindings for this module .