2014-03-12 27 views
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] 

为什么?

+0

是否使用电梯框架的正确版本?我无法在2.3+版本的文档中找到'MetaProtoStateMachine',只能在Lift 2.2中找到。 – chemikadze

+0

@chemikadze被删除或更改? – igx

回答

1

代码是搬出电梯的正常进入2012年一升降模块,您可以找到关于如何正确地在这里引用它的详细信息:https://github.com/liftmodules/machine

+0

谢谢,解决了它 – igx