private boolean isProcessConfigFile ( File file ) { if ( this . configuration . getProcessConfigDirOrFile ( ) . isFile ( ) ) { return file . equals ( this . configuration . getProcessConfigDirOrFile ( ) ) ; } // If the file doesn't exist anymore, treat it as a regular file (to handle file deletion events) if ( file . exists ( ) && ! file . isFile ( ) ) { return false ; } final String fileName = file . getName ( ) ; return ! fileName . startsWith ( "." ) && ( fileName . endsWith ( ".json" ) || fileName . endsWith ( ".yml" ) || fileName . endsWith ( ".yaml" ) ) ; }
Are we a file and a JSON or YAML file?