@ Override public Middleware init ( @ NotNull final Yoke yoke , @ NotNull final String mount ) { try { super . init ( yoke , mount ) ; if ( path == null ) { icon = new Icon ( Utils . readResourceToBuffer ( getClass ( ) , "favicon.ico" ) ) ; } else { icon = new Icon ( fileSystem ( ) . readFileBlocking ( path ) ) ; } } catch ( Exception e ) { throw new RuntimeException ( e ) ; } return this ; }
Loads the icon from the file system once we get a reference to Vert . x