- embed scala lib

This commit is contained in:
Richard Alam 2012-10-30 16:27:19 +00:00
parent aae0fa1d33
commit e583c3d603
3 changed files with 41 additions and 1 deletions

View File

@ -1,3 +1,4 @@
usePlugin 'scala'
usePlugin 'java' usePlugin 'java'
usePlugin 'war' usePlugin 'war'
usePlugin 'eclipse' usePlugin 'eclipse'
@ -98,7 +99,13 @@ dependencies {
//redis //redis
compile 'redis.clients:jedis:2.0.0' compile 'redis.clients:jedis:2.0.0'
providedCompile 'commons:commons-pool:1.5.6' providedCompile 'commons:commons-pool:1.5.6'
// Libraries needed to run the scala tools
scalaTools 'org.scala-lang:scala-compiler:2.9.2'
scalaTools 'org.scala-lang:scala-library:2.9.2'
// Libraries needed for scala api
compile 'org.scala-lang:scala-library:2.9.2'
// Freeswitch ESL Client // Freeswitch ESL Client
compile 'org/freeswitch:fs-esl-client:0.8.2@jar' compile 'org/freeswitch:fs-esl-client:0.8.2@jar'

View File

@ -0,0 +1,28 @@
package org.bigbluebutton.webconf
import scala.actors.Actor
import scala.actors.Actor._
import scala.collection.immutable.HashMap
case class UserJoin(id: String, name: String)
case class UserLeft(id: String)
class Meeting extends Actor {
private val users = new HashMap[String, User]
def act() = {
loop {
react {
case userJoin: UserJoin => {
handleUserJoin(userJoin)
}
}
}
}
private def handleUserJoin(user: UserJoin) {
}
}

View File

@ -0,0 +1,5 @@
package org.bigbluebutton.webconf
class User {
}