Class BringPropertiesSourceScanner

java.lang.Object
com.bobocode.bring.core.env.impl.BringPropertiesSourceScanner
All Implemented Interfaces:
BringSourceScanner

public class BringPropertiesSourceScanner extends Object implements BringSourceScanner
Implementation of BringSourceScanner for scanning properties files based on a specified type.
Since:
1.0
Author:
Blyzhnytsia Team
  • Field Details

  • Constructor Details

    • BringPropertiesSourceScanner

      public BringPropertiesSourceScanner()
  • Method Details

    • scan

      public List<File> scan(String type)
      Scans for files of the specified type.
      Specified by:
      scan in interface BringSourceScanner
      Parameters:
      type - The type of files to scan for.
      Returns:
      A list of File objects representing the scanned files of the specified type.
    • loadAllProperties

      private List<File> loadAllProperties(String type)
      Loads all properties files of a specified type.
      Parameters:
      type - The type of properties files to load.
      Returns:
      A list of File objects representing the loaded properties files.