play2-source-watchers/play2-source-watcher-polling/src/main/java/com/google/code/play2/watcher/polling/PollingFileWatchService.java
@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 ) ) );
                // 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 ) ) ) ; // throw new FileWatchException( "PollingFileWatcher initialization failed", e ); } } }
{@inheritDoc}
{