private void checkHkFirstMode ( ) { final boolean guiceyFirstMode = context . option ( JerseyExtensionsManagedByGuice ) ; if ( ! guiceyFirstMode ) { Preconditions . checkState ( context . option ( UseHkBridge ) , "HK2 management for jersey extensions is enabled by default " + "(InstallersOptions.JerseyExtensionsManagedByGuice), but HK2-guice bridge is not " + "enabled. Use GuiceyOptions.UseHkBridge option to enable bridge " + "(extra dependency is required)" ) ; } }
When HK2 management for jersey extensions is enabled by default then guice bridge must be enabled . Without it guice beans could not be used in resources and other jersey extensions . If this is expected then guice support is not needed at all .