Class/Object

com.reactific.helpers

RegistryReference

Related Docs: object RegistryReference | package helpers

Permalink

case class RegistryReference[T <: Registrable[T]] extends () ⇒ Option[T] with Product with Serializable

Reference A Memory Object From The Database

Many of the objects used in Scrupal are not stored in the database. Essentially those things coming from a Module are just retained in memory: Module, Feature, Entity, Type, Handler, etc. However, we need to reference these things from objects that are stored in the database. We do not want to be loading the low level memory objects all the time but would just like to "find" them. That's what the RegistryReference is for. We can register long-lived immutable objects in a registry and find them later, by name. But, there is a registry per object type, by design. So, we need a way to capture a reference to a named object in one of the registries. We do that by simply caching the registry object and the registrable object's id. This information is then stored in the database and reconstructed into the referenced object with the apply method.

Linear Supertypes
Serializable, Serializable, Product, Equals, () ⇒ Option[T], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RegistryReference
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Function0
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from RegistryReference[T] to any2stringadd[RegistryReference[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (RegistryReference[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from RegistryReference[T] to ArrowAssoc[RegistryReference[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def apply(): Option[T]

    Permalink
    Definition Classes
    RegistryReference → Function0
  7. def as[C](): Option[C]

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def ensuring(cond: (RegistryReference[T]) ⇒ Boolean, msg: ⇒ Any): RegistryReference[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RegistryReference[T] to Ensuring[RegistryReference[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (RegistryReference[T]) ⇒ Boolean): RegistryReference[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RegistryReference[T] to Ensuring[RegistryReference[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: ⇒ Any): RegistryReference[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RegistryReference[T] to Ensuring[RegistryReference[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): RegistryReference[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from RegistryReference[T] to Ensuring[RegistryReference[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from RegistryReference[T] to StringFormat[RegistryReference[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  18. val id: Symbol

    Permalink
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val registry: Registry[T]

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    Function0 → AnyRef → Any
  26. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. def [B](y: B): (RegistryReference[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from RegistryReference[T] to ArrowAssoc[RegistryReference[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from () ⇒ Option[T]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from RegistryReference[T] to any2stringadd[RegistryReference[T]]

Inherited by implicit conversion StringFormat from RegistryReference[T] to StringFormat[RegistryReference[T]]

Inherited by implicit conversion Ensuring from RegistryReference[T] to Ensuring[RegistryReference[T]]

Inherited by implicit conversion ArrowAssoc from RegistryReference[T] to ArrowAssoc[RegistryReference[T]]

Ungrouped