com.zink.scala.fly.kit.FlyFactory.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scala-lib_2.9.1 Show documentation
Show all versions of scala-lib_2.9.1 Show documentation
Fly Scala is a scala client library for working with a Fly Server. Fly is an object space server that is specifically written to provide lightweight object based messaging between computers running on a network. This distribution does not contain the server, please go to http://www.flyobjectspace.com/ for the server that matches the version of Fly Scala you want to use.
The newest version!
package com.zink.scala.fly.kit
import com.zink.scala.fly.Fly
import com.zink.scala.fly.FlyPrime
import com.zink.scala.fly.FieldCodec
import com.zink.scala.fly.stub.FlyStub
import com.zink.scala.fly.stub.SerializingFieldCodec
object FlyFactory {
def apply(host:String = FlyPrime.DEFAULT_HOST, fieldCodec:FieldCodec = new SerializingFieldCodec()):Fly =
try {
new FlyStub(host, fieldCodec)
} catch {
case e => throw new IllegalArgumentException("No Fly server running on " + host)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy