Class BaseRepository

java.lang.Object
org.citrusframework.repository.BaseRepository
All Implemented Interfaces:
org.citrusframework.common.InitializingPhase, org.citrusframework.common.Named

public abstract class BaseRepository extends Object implements org.citrusframework.common.Named, org.citrusframework.common.InitializingPhase
Base class for repositories providing common functionality for initializing and managing resources. Implementations must provide the logic for loading and adding resources to the repository.
  • Constructor Details

    • BaseRepository

      protected BaseRepository(String name)
  • Method Details

    • initialize

      public void initialize()
      Specified by:
      initialize in interface org.citrusframework.common.InitializingPhase
    • addRepository

      protected abstract void addRepository(org.citrusframework.spi.Resource resource)
    • setName

      public void setName(String name)
      Specified by:
      setName in interface org.citrusframework.common.Named
    • getName

      public String getName()
      Gets the name.
      Returns:
      the name to get.
    • getLocations

      public List<String> getLocations()
      Gets the locations.
      Returns:
      the locations to get.
    • setLocations

      public void setLocations(List<String> locations)
      Sets the locations.
      Parameters:
      locations - the locations to set