protected void handleLoadResource ( Option option ) { String resourceLocation = option . getValue ( ) ; reportable . output ( "Loading resource into the cache:" ) ; reportable . output ( " " + resourceLocation ) ; ResourceType type = ResourceType . fromLocation ( resourceLocation ) ; if ( type == null ) { reportable . error ( "Resource type cannot be determined, consult help with -h." ) ; bail ( GENERAL_FAILURE ) ; } cacheMgrService . updateResourceInCache ( type , resourceLocation ) ; }
Handle the load resource option .