Commit graph

11 commits

Author SHA1 Message Date
Patrik Nordwall
793af8b4ec Imrovements from feedback. See #1755 2012-05-15 17:16:46 +02:00
Patrik Nordwall
6dd017d6c1 Replace Java serialization of DaemonMsg by protobuf. See #1755
* Serializers for DaemonMsgCreate and DaemonMsgWatch
* Protobuf for DaemonMsgCreateProtocol, PropsProtocol,
  DeployProtocol, DaemonMsgWatchProtocol
* Removed unused MailboxProtocol.proto
* Fixed wrong serializeActorRef in DurableMessageSerialization
2012-05-15 10:50:05 +02:00
Roland
dca309c535 incorporate Patrik’s feedback
- rename to DynamicAccess
- rename to createInstanceFor / createClassFor
- fix a few little things
2012-02-10 11:36:23 +01:00
Roland
2ce47d6bb5 Bye-bye ReflectiveAccess, introducing PropertyMaster, see #1750
- PropertyMaster is the only place in Akka which calls
  ClassLoader.getClass (apart from kernel, which might be special)
- all PropertyMaster methods (there are only three) take a ClassManifest
  of what is to be constructed, and they verify that the obtained object
  is actually compatible with the required type

Other stuff:
- noticed that I had forgotten to change to ExtendedActorSystem when
  constructing Extensions by ExtensionKey (damn you, reflection!)
- moved Serializer.currentSystem into JavaSerializer, because that’s the
  only one needing it (it’s only used in readResolve() methods)
- Serializers are constructed now with one-arg constructor taking
  ExtendedActorSystem (if that exists, otherwise no-arg as before), to
  allow JavaSerializer to do its magic; possibly necessary for others as
  well
- Removed all Option[ClassLoader] signatures
- made it so that the ActorSystem will try context class loader, then
  the class loader which loaded the class actually calling into
  ActorSystem.apply, then the loader which loaded ActorSystemImpl
- for the second of the above I added a (reflectively accessed hopefully
  safe) facility for getting caller Class[_] objects by using
  sun.reflect.Reflection; this is optional an defaults to None, e.g. on
  Android, which means that getting the caller’s classloader is done on
  a best effort basis (there’s nothing we can do because a StackTrace
  does not contain actual Class[_] objects).
- refactored DurableMailbox to contain the owner val and use that
  instead of declaring that in all subclasses
2012-02-09 11:56:43 +01:00
Viktor Klang
149fbea5a7 Updating Copyright as per #1660 2012-01-19 18:21:06 +01:00
Viktor Klang
fbb7cb20a1 Adding Java docs for Serialization, and discovered some flaws with the Java API, that have been fixed 2011-12-30 22:06:41 +01:00
Viktor Klang
aba206da93 Rewriting the ProtobufSerializer to be a bit less imperative 2011-12-30 19:20:24 +01:00
Viktor Klang
56cc66437f Removing a shadowing import in ProtobufSerializer.scala 2011-12-30 19:09:42 +01:00
Viktor Klang
e78739f7e5 Adding more docs to Serialization and making sure that the Protobuf stuff gets its manifests 2011-12-30 14:15:27 +01:00
Viktor Klang
cffe60bf43 Closing #1584 and #1585 2011-12-30 14:15:26 +01:00
Viktor Klang
840cacfd2a initial commit on serialization docs 2011-12-30 14:14:12 +01:00