@Override
    public void initialize( FileWatchLogger log ) throws FileWatchException
    {
        super.initialize( log );

        pollInterval = DEFAULT_POLL_INTERVAL;
        String pollIntervalProp = System.getProperty( "play2.pollInterval" );
        if ( pollIntervalProp != null )
        {
            try
            {
                pollInterval = Integer.parseInt( pollIntervalProp );
            }
            catch ( NumberFormatException e )
            {
                log.warn( String.format( "Unparsable property value \"%s\", using default poll interval %d ms",
                                         pollIntervalProp, Integer.valueOf( DEFAULT_POLL_INTERVAL ) ) );
                // throw new FileWatchException( "PollingFileWatcher initialization failed", e );
            }
        }
    }
@ Override public void initialize ( FileWatchLogger log ) throws FileWatchException { super . initialize ( log ) ; pollInterval = DEFAULT_POLL_INTERVAL ; String pollIntervalProp = System . getProperty ( "play2.pollInterval" ) ; if ( pollIntervalProp != null ) { try { pollInterval = Integer . parseInt ( pollIntervalProp ) ; } catch ( NumberFormatException e ) { log . warn ( String . format ( "Unparsable property value \"%s\", using default poll interval %d ms" , pollIntervalProp , Integer . valueOf ( DEFAULT_POLL_INTERVAL ) ) ) ; } } }
{@inheritDoc}