fm.common

ReloadableFileResource

abstract class ReloadableFileResource[T] extends ReloadableResource[T]

Linear Supertypes
ReloadableResource[T], Logging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReloadableFileResource
  2. ReloadableResource
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReloadableFileResource()

Abstract Value Members

  1. abstract def backupResourcePath: Option[String]

    If the files don't exist or fail this is a backup source that should be on the classpath

    If the files don't exist or fail this is a backup source that should be on the classpath

    Attributes
    protected
  2. abstract def defaultResource: Option[T]

    A backup backup resource that will be used if the files and backup cannot be loaded

    A backup backup resource that will be used if the files and backup cannot be loaded

    Attributes
    protected
    Definition Classes
    ReloadableFileResourceReloadableResource
  3. abstract def loadFromInputStream(inputStream: InputStream): T

    Load the resource given the input stream

    Load the resource given the input stream

    Attributes
    protected
  4. abstract def resourceFiles: Seq[File]

    Files to check (will choose the one with the newest timestamp)

    Files to check (will choose the one with the newest timestamp)

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def apply(): T

    Get the current version of the resource

    Get the current version of the resource

    Definition Classes
    ReloadableResource
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. final def clear(): Unit

    Clear the reference to the current version of the resource.

    Clear the reference to the current version of the resource.

    NOTE: Calling apply() after this will return null

    Definition Classes
    ReloadableResource
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def disableAutoUpdateCheck(): Unit

    Disable the auto update checks

    Disable the auto update checks

    Definition Classes
    ReloadableResource
  11. final def enableAutoUpdateCheck(delaySeconds: Int = 300, periodSeconds: Int = 300): Unit

    Enable checking and automatic reload of the resource if the external file is updated

    Enable checking and automatic reload of the resource if the external file is updated

    Definition Classes
    ReloadableResource
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Definition Classes
    ReloadableResource → AnyRef
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def loadFromBackup(): Option[T]

    Load the resource from it's backup source (if any)

    Load the resource from it's backup source (if any)

    Attributes
    protected
    Definition Classes
    ReloadableFileResourceReloadableResource
  19. def loadFromPrimary(): Option[T]

    Load the resource from it's primary source

    Load the resource from it's primary source

    Attributes
    protected
    Definition Classes
    ReloadableFileResourceReloadableResource
  20. final def loadResource(): T

    Directly load the resource and return the result.

    Directly load the resource and return the result. Doesn't touch the current resource in this class.

    Definition Classes
    ReloadableResource
  21. lazy val logger: Logger

    Attributes
    protected
    Definition Classes
    Logging
  22. def lookupLastModified(): Long

    The Last Modified time of the resource (can be set to System.

    The Last Modified time of the resource (can be set to System.currentTimeMillis to always reload)

    Attributes
    protected
    Definition Classes
    ReloadableFileResourceReloadableResource
  23. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. final def reload(): Boolean

    Attempt to reload the current resource.

    Attempt to reload the current resource. If there is a problem the existing version will be left in place

    Returns true if the resource was successfully updated

    TODO: This should probably return an Option[Long] which is the last modified time of the reloaded resource

    Definition Classes
    ReloadableResource
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ReloadableResource[T]

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped