Trait/Object

org.constretto

Constretto

Related Docs: object Constretto | package constretto

Permalink

trait Constretto extends AnyRef

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

Abstract Value Members

  1. abstract def config: ConstrettoConfiguration

    Permalink

Concrete Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply[T](name: String)(implicit converter: Converter[T]): T

    Permalink

    Looks up an required key in the configuration.

    Looks up an required key in the configuration.

    name

    The key to look up

    returns

    The converted value for the expression.

    Since

    1.0

    Exceptions thrown

    ConstrettoConversionException If a valid converter is not found for the target Type

    ConstrettoExpressionException If the key is not found

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def get[T](name: String)(implicit converter: Converter[T]): Option[T]

    Permalink

    Looks up an optional key in the configuration.

    Looks up an optional key in the configuration.

    name

    The key to look up

    returns

    The converted value for the expression, or None if expression not found, or conversion error occured.

    Since

    1.0

  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getCurrentTags: Seq[String]

    Permalink

    Gives a list over all the tags currently in use.

    Gives a list over all the tags currently in use.

    returns

    current tags

    Since

    1.1

  13. def hashCode(): Int

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def properties: Iterator[(String, String)]

    Permalink

    Provides all configuration key/value pairs in the current Constretto configuration

    Provides all configuration key/value pairs in the current Constretto configuration

    returns

    Iterator of Pairs of configuration key, and values as strings

    Since

    1.1

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def appendTag(tags: String*): Unit

    Permalink

    Appends (lower precedence) a new configuration tag at runtime.

    Appends (lower precedence) a new configuration tag at runtime. Will try to reconfigure any classes configured with on() or at()

    tags

    the new Tag to be appended to the list of constretto configuration tags.

    Annotations
    @deprecated
    Deprecated

    Will be removed once Constretto 3 is released

    Since

    1.1

    Exceptions thrown

    ConstrettoConversionException If a conversion error occurs when reconfiguring objects.

  2. def clearTags(reconfigure: Boolean = false): Unit

    Permalink

    Clears all tags in Constretto including the ones originally configured either with a ConfigurationContextResolver, or by the ConstrettoBuilder class.

    Clears all tags in Constretto including the ones originally configured either with a ConfigurationContextResolver, or by the ConstrettoBuilder class. Resulting in Constretto having no configuration tags registered.

    This is a non recoverable operation and after use you will need to build your tags from scratch.

    reconfigure

    if set constretto will run the reconfigure() method after clearing. Note this may result in exceptions from constretto if default values does not exist for all keys injected in methods or fields annotated with @Configure or @Configuration

    Annotations
    @deprecated
    Deprecated

    Will be removed once Constretto 3 is released

    Since

    1.1

    Exceptions thrown

    ConstrettoConversionException If a conversion error occurs when reconfiguring objects.

  3. def prependTag(tags: String*): Unit

    Permalink

    Prepends (higher precedence) a new configuration tag at runtime.

    Prepends (higher precedence) a new configuration tag at runtime. Will try to reconfigure any classes configured with on() or at()

    tags

    the new Tag to be prepended to the list of constretto configuration tags.

    Annotations
    @deprecated
    Deprecated

    Will be removed once Constretto 3 is released

    Since

    1.1

    Exceptions thrown

    ConstrettoConversionException If a conversion error occurs when reconfiguring objects.

  4. def removeTag(tags: String*): Unit

    Permalink

    Removes a configuration tag at runtime.

    Removes a configuration tag at runtime. Will try to reconfigure any classes configured with on() or at()

    tags

    the new tags to be appended to the list of constretto configuration tags.

    Annotations
    @deprecated
    Deprecated

    Will be removed once Constretto 3 is released

    Since

    1.1

    Exceptions thrown

    ConstrettoConversionException If a conversion error occurs when reconfiguring objects.

  5. def resetTags(reconfigure: Boolean = false): Unit

    Permalink

    Resets all tags in Constretto to the ones originally configured either with a ConfigurationContextResolver, or by the ConstrettoBuilder class.

    Resets all tags in Constretto to the ones originally configured either with a ConfigurationContextResolver, or by the ConstrettoBuilder class.

    reconfigure

    if set constretto will run the reconfigure() method after the reset. Note this may result in exceptions from constretto if default values does not exist for all keys injected in methods or fields annotated with @Configure or @Configuration

    Annotations
    @deprecated
    Deprecated

    Will be removed once Constretto 3 is released

    Since

    1.1

    Exceptions thrown

    ConstrettoConversionException If a conversion error occurs when reconfiguring objects.

Inherited from AnyRef

Inherited from Any

Ungrouped