public AbstractModule createModule ( ) { return new AbstractModule ( ) { @ Override protected void configure ( ) { bind ( IDataFactory . class ) . to ( mDataFacClass ) ; bind ( IMetaEntryFactory . class ) . to ( mMetaFacClass ) ; bind ( IRevisioning . class ) . to ( mRevisioningClass ) ; bind ( IByteHandlerPipeline . class ) . toInstance ( mByteHandler ) ; install ( new FactoryModuleBuilder ( ) . implement ( IBackend . class , mBackend ) . build ( IBackendFactory . class ) ) ; install ( new FactoryModuleBuilder ( ) . build ( IResourceConfigurationFactory . class ) ) ; bind ( Key . class ) . toInstance ( mKey ) ; install ( new FactoryModuleBuilder ( ) . build ( ISessionConfigurationFactory . class ) ) ; } } ; }
Creating an Guice Module based on the parameters set .