0
我想实现提升状态机下面用电梯2.5和Scala电梯在行动书2.10电梯MetaProtoStateMachine不采取类型参数
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]
为什么?
是否使用电梯框架的正确版本?我无法在2.3+版本的文档中找到'MetaProtoStateMachine',只能在Lift 2.2中找到。 – chemikadze
@chemikadze被删除或更改? – igx