package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
AsyncSalatRunnable
extends Runnable
Helper class for running Salat with Android.
-
case class
IncompatibleTargetFieldType
(msg: String, cause: Throwable) extends Error with Product with Serializable
The target type of the value was incompatible with the type of the field.
-
class
Logger
extends AnyRef
Scala SLF4J wrapper
Scala SLF4J wrapper
Example:
class Foo extends Logging { log.info("My foo is %s","alive") log.error(new Exception(),"My foo is %s","broken") }
The logger uses String.format: http://download-llnw.oracle.com/javase/6/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)
- Attributes
- protected[salat]
-
trait
Logging
extends AnyRef
Base trait for all classes that wants to be able use the logging infrastructure.
Base trait for all classes that wants to be able use the logging infrastructure.
- Attributes
- protected[salat]
- case class MissingCaseObjectOverride (path: String, value: Any, ctxName: String) extends SalatGlitch with Product with Serializable
-
case class
MissingConstructor
(clazz: Class[_]) extends SalatGlitch with Product with Serializable
Runtime error indicating that Salat can't identify any constructor for this class.
Runtime error indicating that Salat can't identify any constructor for this class.
- clazz
class instance
-
case class
MissingExpectedType
(clazz: Class[_]) extends SalatGlitch with Product with Serializable
Runtime error indicating that class' pickled Scala signature does not define any top-level classes or objects.
Runtime error indicating that class' pickled Scala signature does not define any top-level classes or objects.
- clazz
class instance
-
case class
MissingPickledSig
(clazz: Class[_]) extends SalatGlitch with Product with Serializable
Runtime error indicating that Salat can't find the pickled Scala signature for this class.
Runtime error indicating that Salat can't find the pickled Scala signature for this class.
- clazz
class instance
-
class
SalatGlitch
extends Error
A Salat transformation error that does not have an underlying cause.
-
case class
TooManyConstructorsWithArgs
[X](clazz: Class[X], cl: List[Constructor[X]]) extends SalatGlitch with Product with Serializable
Runtime error indicating that a class defines more than one constructor with args.
Runtime error indicating that a class defines more than one constructor with args.
- X
any reft
- clazz
parameterized class instance
- cl
list of parameterized constructors found for this class
Value Members
- val DefaultSalatStackSize: Long
- val EmptyPlaceholder: String
- val MissingPlaceholder: String
- val NonePlaceholder: String
- val NullPlaceholder: String
- val OptionalMissingPlaceholder: String
- val QuestionPlaceholder: String
- val SalatThreads: ThreadGroup
- def asyncSalat[T](stackSize: Long)(f: ⇒ T): T
- def asyncSalat[T](f: ⇒ T): T
- def reflectFields(x: Product): Map[Any, Any]
-
def
resolveClass[X <: AnyRef](c: String, classLoaders: Iterable[ClassLoader]): Option[Class[X]]
- Attributes
- protected[salat]
-
def
resolveClass_!(c: String, classLoaders: Iterable[ClassLoader]): Class[_]
- Attributes
- protected[salat]
-
def
toUsableClassName(clazz: String): String
- Attributes
- protected[salat]
- def truncate(a: AnyRef, l: Int = 100): String
-
object
BestAvailableConstructor
extends Logging
Given multiple contructors, attempt to determine the best available constructor for instantiating the class.
- object IncompatibleTargetFieldType extends Serializable
-
object
Logger
Logger factory
Logger factory
ex.
val logger = Logger("my.cool.logger") val logger = Logger(classOf[Banana]) val rootLogger = Logger.root
- Attributes
- protected[salat]
-
object
SalatDAOUtils
Some useful utilities for extracting a single result from a list of results.
-
object
ScalaSigUtil
extends Logging
- Attributes
- protected[salat]