Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mark foreachCallback() public so that it can be called from parent (p…

…rotected is not a two-way street, per paulp)
  • Loading branch information...
commit 7cae7cc83b11aa8a8ac108af3914431d41915810 1 parent 600b11a
@indrajitr indrajitr authored
View
8 persistence/record/src/main/scala/net/liftweb/record/MetaRecord.scala
@@ -124,12 +124,12 @@ trait MetaRecord[BaseRecord <: Record[BaseRecord]] {
introspect(this, methods) {
case (v, mf) => tArray += FieldHolder(mf.name, v, mf)
}
-
+
fieldList = {
val ordered = fieldOrder.flatMap(f => tArray.find(_.metaField == f))
ordered ++ (tArray -- ordered)
}
-
+
fieldMap = Map() ++ fieldList.map(i => (i.name, i))
}
@@ -213,7 +213,7 @@ trait MetaRecord[BaseRecord <: Record[BaseRecord]] {
}
JsObj(tups:_*)
}
-
+
/**
* Retuns the JSON representation of <i>inst</i> record, converts asJValue to JsObj
*
@@ -296,7 +296,7 @@ trait MetaRecord[BaseRecord <: Record[BaseRecord]] {
def setFieldsFromJsonString(inst: BaseRecord, json: String): Box[Unit] =
setFieldsFromJValue(inst, JsonParser.parse(json))
- protected def foreachCallback(inst: BaseRecord, f: LifecycleCallbacks => Any) {
+ def foreachCallback(inst: BaseRecord, f: LifecycleCallbacks => Any) {
lifecycleCallbacks.foreach(m => f(m._2.invoke(inst).asInstanceOf[LifecycleCallbacks]))
}
Please sign in to comment.
Something went wrong with that request. Please try again.