trait Loggable {
@transient private[this] var _logger: Logger = null
/**
* Initializes the logger field. This is exposed for subclasses to invoke during deserialization to work
* around java serialization limitations with Scala traits.
*/
protected def loggableInit(): Unit = _logger = Logger(this.getClass)
loggableInit()
protected def logger = _logger
}
class JsObjFactory() extends Factory with Serializable with Loggable {
@transient private var promiseMapper = DefaultApiSuccessMapper
@throws(classOf[IOException])
@throws(classOf[ClassNotFoundException])
private[this] def readObject(in: ObjectInputStream): Unit = {
promiseMapper = DefaultApiSuccessMapper
loggableInit()
}
// Other irrelevant code below ...
}
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This would also allow us to publish the code using the Kryo library without adding it as a dependency for Lift itself. The fact that it can be done as an optional model is the most appealing part of this idea.
Hi,
No Scala code needed for that, you just have to add the script resources and reference it.
Best regards Peter Petersson
Hi
There are a lot of ways to add resources to Lift but one easy way
to get started is to download the resources (npm install or what
ever method you like) then copy them to a folder (like
assets/js/... assets/css...) inside of your /webapp folder (like
you would do with simple app specific .css files).
In your "default.html" then add a script tag like this
Hope that help you get going, then you can explore other ways to
add resources.