public void guiceManage ( final Class < ? > type ) { if ( JerseyBinding . isHK2Managed ( type , options . get ( JerseyExtensionsManagedByGuice ) ) ) { throw new WrongContextException ( "Guice creates service %s which must be managed by HK2." , type . getName ( ) ) ; } guiceManaged . add ( type ) ; }
Called by specific guice provision listener to check if bean is properly instantiated by guice .