org.positronicnet.facility

AppFacility

class AppFacility extends AnyRef

Semi-abstract base class for a facility of some kind which is of use to one or more Activities or Services within an application. Often has a WorkerThread, which it can use to run code in the background.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. AppFacility
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AppFacility (logTag: String)

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. def close : Unit

    Close the facility.

    Close the facility.

    First, decrements the "nested open" count. If it has reached zero, do a "real" close, using the protected realclose method. Otherwise, some other activity is still using the facility, and it stays open.

    When the last activity or service calls close, the facility actually does shut down, using the protected realClose method, which will shut down threads, close files, or whatever.

  9. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  10. def equals (arg0: Any): Boolean

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef
  13. def getLogTag : String

    Tag for the facility to use in log entries

  14. def hashCode (): Int

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

    Attributes
    final
    Definition Classes
    Any
  16. def log (s: String): AnyVal

    Writes a debugging log method, using the facility's logTag

  17. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  18. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. def openInContext (ctx: Context): Unit

    Open the facility.

    Open the facility.

    If the facility isn't already open, does setup which depends on the particular facility (which may involve opening files, starting threads, or whatever) --- a "real" open, using the protected realOpen method. The given Context may be used for setup, depending on the nature of the facility.

    If it is already open, just increments a "nested open" count; see close below.

  21. def realClose : Unit

    Attributes
    protected
  22. def realOpen (ctx: Context): Unit

    Attributes
    protected
  23. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  24. def toString (): String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any