我正在尝试使用升降机2.5和scala 2.10
来实施升降机状态机import net.liftweb.common.{Loggable,Full,Empty}
import net.liftweb.machine.{ProtoStateMachine,MetaProtoStateMachine}
import net.liftweb.mapper.MappedLongForeignKey
import net.liftweb.util.Helpers._
object AuctionStates extends Enumeration {
val Initial, Active, Expired = Value
}
object AuctionMachine extends AuctionMachine with MetaProtoStateMachine[AuctionMachine, AuctionStates.type ]{
...
}
class AuctionMachine extends ProtoStateMachine[AuctionMachine, AuctionStates.type]{
def getSingleton = AuctionMachine
...
}
但是我收到了这个错误 错误:
net.liftweb.machine.MetaProtoStateMachine does not take type parameters
[INFO] object AuctionMachine extends AuctionMachine with MetaProtoStateMachine[AuctionMachine, AuctionStates.type]
为什么?
答案 0 :(得分:1)
2012年,代码从Lift适当移出了Lift模块。您可以在此处找到有关如何正确引用它的更多信息:https://github.com/liftmodules/machine