Class LocalStorageConfiguration

All Implemented Interfaces:
io.micronaut.core.naming.Named, io.micronaut.core.util.Toggleable, ObjectStorageConfiguration, ObjectStorageModuleConfiguration

@EachProperty("micronaut.object-storage.local") public class LocalStorageConfiguration extends AbstractObjectStorageConfiguration
Configuration class for local storage.
Since:
2.0.0
Author:
Álvaro Sánchez-Mariscal
  • Field Details

  • Constructor Details

    • LocalStorageConfiguration

      public LocalStorageConfiguration(@Parameter String name)
  • Method Details

    • getPath

      @NonNull public @NonNull Path getPath()
      The path of the local storage.
      Returns:
      The path of the local storage.
    • setPath

      public void setPath(@NonNull @NonNull Path path)
      Parameters:
      path - The path of the local storage.
    • isEnabled

      public boolean isEnabled()
      Whether to enable or disable this object storage.
      Since:
      2.0.2