Commit graph

265 commits

Author SHA1 Message Date
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
Roland
4e12b72959 move Java code snippet into compiled class 2012-02-06 12:59:03 +01:00
Roland
9ba5043539 add router design rationale, see #1772 2012-02-06 12:18:08 +01:00
Peter Vlugter
3fbd18f0fa Update to ScalaSTM 0.5 (which includes Java API) 2012-02-06 11:34:47 +13:00
patriknw
1d6f350799 Merge pull request #300 from jboner/wip-1776-ser-patriknw
Find serializer by looking at interfaces and super classes. See #1766
2012-02-04 10:19:07 -08:00
Patrik Nordwall
612e909c48 Find serializer by looking at interfaces and super classes. See #1766 2012-02-03 17:32:32 +01:00
Jonas Bonér
2ea6e97a41 Merge branch 'master' of github.com:jboner/akka 2012-02-03 16:31:56 +01:00
Jonas Bonér
a221722c41 Fixed minor typos in the futures docs.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2012-02-03 16:31:31 +01:00
Roland Kuhn
3a5c20e228 Merge pull request #296 from jboner/wip-1779-slf4j-docs-∂π
update docs for SLF4J, see #1779
2012-02-03 06:03:38 -08:00
Roland Kuhn
f62b50a41b add missing parens 2012-02-03 11:44:36 +01:00
Roland Kuhn
8090769730 change “Class[_]” into proper Java raw generics 2012-02-03 11:42:59 +01:00
Roland
b57c9e8f5e update docs for SLF4J, see #1779 2012-02-03 10:47:56 +01:00
Viktor Klang
96412ba1ad Adding ExecutionContext docs for futures, and adding a Java-friendly ExecutionContexts object 2012-02-03 10:35:05 +01:00
Roland
45140b465e Merge remote-tracking branch 'origin/master' into wip-1644-programmatic-deploy-∂π 2012-02-03 09:49:04 +01:00
Viktor Klang
8193e61aee Renaming tryRecover to recoverWith as in SIP14, adding parameter to foreach 2012-02-03 09:25:56 +01:00
Roland
76bba1f530 remote deploy docs & provider.getExternalAddressFor (see #1765) 2012-02-03 09:16:18 +01:00
Viktor Klang
d0d391b1dc Renaming NettyRemoteSupport to NettyRemoteTransport everywhere 2012-02-01 16:34:20 +01:00
viktorklang
d8d0f4486f Merge pull request #284 from jboner/wip-1735-fix-pipe-to-√
Removing pipeTo from akka.actor, renamed pipeTo(f,a) to pipe(f,a)
2012-02-01 05:57:44 -08:00
Viktor Klang
009a1afe89 Making createAsker private, adding docs for 'to', changing Java API to be symmetric to Java 2012-02-01 14:54:54 +01:00
patriknw
e791f809ef Merge pull request #273 from jboner/wip-1730-diagrams-patriknw
DOC: Derek Wyatt's diagrams of fault tolerance sample, and descriptions.
2012-02-01 05:19:49 -08:00
Viktor Klang
0c02adaa75 Merge branch 'master' into wip-1735-fix-pipe-to-√ 2012-02-01 12:05:54 +01:00
patriknw
ed7ff3b02f Merge pull request #283 from jboner/wip-1716-directives-patriknw
Replaced Action with Directive in SupervisorStrategy. See #1716
2012-02-01 02:28:42 -08:00
Viktor Klang
571af3d8d2 Removing pipeTo from akka.actor, renamed pipeTo(f,a) to pipe(f,a) 2012-01-31 18:56:25 +01:00
Viktor Klang
815245a133 Merging with master 2012-01-31 17:56:49 +01:00
Viktor Klang
92426a82d9 Renaming Future.or to fallbackTo 2012-01-31 17:19:38 +01:00
viktorklang
a0a4a85e49 Merge pull request #270 from jboner/wip-fix-futures-√
Wip fix futures √
2012-01-31 07:10:59 -08:00
Viktor Klang
8cd033bb17 Merge branch 'master' into wip-fix-futures-√ 2012-01-31 16:10:14 +01:00
Patrik Nordwall
2a4418799a Replaced Action with Directive in SupervisorStrategy. See #1716 2012-01-31 16:10:07 +01:00
Viktor Klang
aa1c7ea9b9 Adding java documentation for andThen, recover and tryRecover 2012-01-31 16:00:46 +01:00
Jonas Bonér
5a1c0da8ae converted tabs to spaces 2012-01-31 15:50:06 +01:00
Viktor Klang
5d2669769f Making the ExecutionContext protected and adding tryRecover 2012-01-30 17:01:47 +01:00
Patrik Nordwall
269ff0aa96 ZeroMQ module's ConcurrentSocketActorSpec fails.
* Fixed usage of extension. See #1746
* Clarified usage of load extensions in docs. See #1745
2012-01-30 16:55:03 +01:00
Patrik Nordwall
8c5d10df8e Fixed memory leak in doc tests. See #1743 2012-01-30 14:51:25 +01:00
Patrik Nordwall
c1178c9b1a DOC: Better use of pipeTo in FaultHandlingDocSample 2012-01-30 11:56:09 +01:00
Patrik Nordwall
f8741c326e DOC: Derek Wyatt's diagrams of fault tolerance sample, and descriptions. See #1730 2012-01-26 18:42:11 +01:00
Viktor Klang
b310407334 wip 2012-01-26 14:15:25 +01:00
Patrik Nordwall
2aa72993d6 Rearanged declaration of messages. Improvements from review. See #1722 2012-01-26 09:28:37 +01:00
Viktor Klang
f00c4f61be more wip 2012-01-25 22:49:31 +01:00
Viktor Klang
5f83340d5e wip 2012-01-25 22:36:03 +01:00
Patrik Nordwall
4e0bd947be DOC: Java version of the fault tolerance sample. See #1722 2012-01-25 18:17:16 +01:00
Viktor Klang
eca809675a Merge branch 'master' into wip-1537-moar-futuredocs-√ 2012-01-24 16:31:52 +01:00
Viktor Klang
5483dacaba Adding Future docs for Java API 2012-01-24 16:31:20 +01:00
Roland Kuhn
1399b048e1 Merge pull request #251 from jboner/wip-1719-ExtendedActorSystem-∂π
add ExtendedActorSystem to shield ActorSystemImpl
2012-01-24 06:36:05 -08:00
Roland Kuhn
996b2dc173 Merge pull request #255 from jboner/wip-1428-FSM-Java-∂π
add Java FSM example and reST, see #1428
2012-01-24 06:35:42 -08:00
Roland
6afed30d43 add Java FSM example and reST, see #1428 2012-01-24 14:32:17 +01:00
Roland Kuhn
dcdbca1167 Merge pull request #250 from jboner/wip-1714-withinTimeRange-patriknw
Improved API of OneForOneStrategy and AllForOneStrategy. See #1714
2012-01-24 04:13:36 -08:00
Roland
d5c23bcb76 add ExtendedActorSystem to shield ActorSystemImpl
- add provider, guardian, systemGuardian and deathWatch to it
- make ActorSystemImpl extend ExtendedActorSystem
- use ExtendedActorSystem for creating extensions, thereby limiting the
  access extensions get to just those four published methods.
2012-01-24 11:33:40 +01:00
Patrik Nordwall
2a6b7f9b03 Moved decider to separate parameter list, and implicit conversion from Seq[Throwable]. See #1714 2012-01-24 10:35:09 +01:00
Roland
ee5ae1068b Merge branch 'wip-1485-fsm-docs-∂π' 2012-01-24 09:35:35 +01:00
Patrik Nordwall
abc072ef0a Improved API of OneForOneStrategy and AllForOneStrategy. See #1714
* withinTimeRange: Duration
* Removed need for Options in API
2012-01-24 08:46:27 +01:00