Rewriting getClassFor to do a fall-back approach, first test the specified classloader, then test the current threads context loader, then try the ReflectiveAccess` classloader and the Class.forName

This commit is contained in:
Viktor Klang 2011-03-20 18:32:32 +01:00
parent e5bd97f0be
commit e33eefa1d2
3 changed files with 32 additions and 20 deletions

View file

@ -856,6 +856,8 @@ class RemoteServerHandler(
}
private def handleRemoteMessageProtocol(request: RemoteMessageProtocol, channel: Channel) = {
//FIXME we should definitely spawn off this in a thread pool or something,
// potentially using Actor.spawn or something similar
request.getActorInfo.getActorType match {
case SCALA_ACTOR => dispatchToActor(request, channel)
case TYPED_ACTOR => dispatchToTypedActor(request, channel)