For passing arguments to a constructor of a dynamically loaded actor class, you can use Props.withCreator(c:Creator[Actor])
Just define your custom Creator, in your case something like:
class MyCreator(name:String, prev:ActorRef, next:ActorRef) extends Creator[Actor] {
val myClazz = theClassLoader.load(name)
override def create() = {
val constructor = myClazz.getConstructor( classOf[ActorRef], classOf[ActorRef] )
constructor.newInstance( prev, next ).asInstanceOf[Actor]
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.To post to this group, send email to akka...@googlegroups.com.To unsubscribe from this group, send email to akka-user+...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Patrik Nordwall
Typesafe - The software stack for applications that scale
Twitter: @patriknw
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.