@ SuppressWarnings ( "unchecked" ) private void bindExtension ( final ExtensionItemInfo item , final FeatureInstaller installer , final ExtensionsHolder holder ) { final Class < ? extends FeatureInstaller > installerClass = installer . getClass ( ) ; final Class < ? > type = item . getType ( ) ; holder . register ( installerClass , type ) ; if ( installer instanceof BindingInstaller ) { ( ( BindingInstaller ) installer ) . install ( binder ( ) , type , item . isLazy ( ) ) ; } else if ( ! item . isLazy ( ) ) { // if installer isn't install binding manually, lazy simply disable registration binder ( ) . bind ( type ) ; } }
Bind extension to guice context .