Commit graph

100 commits

Author SHA1 Message Date
Roland
ce49ffe3c6 remove all but one occurrence of single-arg tell() 2012-09-19 23:55:53 +02:00
Patrik Nordwall
9ec7645617 Support load of extensions without specifying trailing $, see #2496
* Backwards compatible, i.e. still possible to use $
* DynamicAccess tries first with $ in getObjectFor, then falls back
  to fqcn as is
2012-09-18 15:51:26 +02:00
Roland
a15900a591 port onto SBT-0.12 branch 2012-08-22 11:10:36 +02:00
Roland
faae09ab4e add docs for ExtractRoute, see #2337 2012-07-25 20:48:32 +02:00
Viktor Klang
94e8d201f0 Removing ExecutionContext from some signatures in Future.scala, changing copyright to Akka for BatchingExecutor 2012-07-22 13:38:12 +02:00
Viktor Klang
ac5b5de90a Merging in master, huge work trying to get things to compile, tests not green at this stage 2012-07-06 17:04:04 +02:00
Viktor Klang
52d33113d9 Partial work + broken commit 2012-07-04 15:25:30 +02:00
Viktor Klang
0bf45a9403 Initial work in moving to scala.concurrent.Await + Awaitable 2012-06-29 16:06:26 +02:00
Viktor Klang
54a3a44bf8 #2292 - Removing akka.util.Duration etc and replace it with scala.concurrent.util.Duration 2012-06-29 13:33:20 +02:00
Viktor Klang
d08489c17b Making sure that akka-actor and akka-actor-tests compile and tests are green 2012-06-25 13:56:11 +02:00
Viktor Klang
1711934043 Mergin in the latest master 2012-06-20 11:28:40 +02:00
Viktor Klang
cd0c89d939 Adding -feature and trying to find scala versions for our akka-actor-test dependencies. Also updating the version of Scalatest, specs2 and junit 2012-06-15 13:04:10 +02:00
Viktor Klang
1eb6681b3c Removing horrid IDEA autogenerated section and adding Typesafe copyright to NonPublicClass.java 2012-06-13 15:11:19 +02:00
Viktor Klang
8ce6ac3e3e #2217 - setting accessible = true before newInstance 2012-06-13 12:23:02 +02:00
Viktor Klang
a863f135e0 #2020 - Adding 'checkedApply' to Mapper to allow for binary compatible retrofit. And then @throws on the other Java Callbacks 2012-04-24 17:56:18 +02:00
Roland
201885d125 incorporate Viktor’s review
- rename instance() to getInstance()
- add ScalaDoc
- some formatting
2012-04-10 16:59:23 +02:00
Roland
b6db48818a add Java API for most case objects
- “case object” will emit a concrete class without constructor, so put
  abstract class in its way in order to obtain an accessible type for
  Scala & Java (i.e. without $)
- add “def instance = this” to make access uniform from Java
- this does not work for nested case objects because of missing static
  forwarders, so keep those as they were
- fix issue with case object FromConfig colliding with case class
  FromConfig by open-coding the “case”iness in this case (should be
  thrown out in 2.1)
2012-04-10 16:59:15 +02:00
Roland
73170d1f4b Merge remote-tracking branch 'origin/master' into testing-2.9.2 2012-02-28 10:52:27 +01:00
phaller
00e5bf3bdf Add Java API class UntypedActorWithStash. Add tests for Stash Java API. 2012-02-27 22:38:26 +01:00
Viktor Klang
46b9b3cd43 Removing the Filter class, keeping Filter.filterOf 2012-02-27 11:08:02 +01:00
Roland
0cb2184904 make it compile in SBT & Eclipse with 2.9.2-SNAPSHOT
- there is one remaining bug, which makes it impossible to implement
  Function1[T, Boolean] from Java (I wonder if this will ever work,
  given that there is no equivalent type expressible in Java)
- hence create Function1 in Scala code, Java only prepares a Filter SAM
  which does not inherit from anything
- ugly (one more alloc) but the only way I see right now.
2012-02-25 19:34:59 +01:00
Viktor Klang
e88f2bd936 First stab, do we want to go for throws Throwable or even just switch to RuntimeExceptions? 2012-02-16 12:31:49 +01:00
Patrik Nordwall
e017aeef08 Replace akka.actor.timeout with specfic settings. See #1808
* ActorTimeout (akka.actor.timeout) was used to all sorts of things.
* TestKit default-timeout
* TypedActor timeout for non void methods
* Transactor coordinated-timeout
* ZeroMQ new-socket-timeout
* And in various tests
2012-02-10 16:07:17 +01: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
8193e61aee Renaming tryRecover to recoverWith as in SIP14, adding parameter to foreach 2012-02-03 09:25:56 +01:00
Viktor Klang
5d2669769f Making the ExecutionContext protected and adding tryRecover 2012-01-30 17:01:47 +01:00
Viktor Klang
1ebdcaca1a Fixes after review 2012-01-26 17:47:31 +01:00
Viktor Klang
5ddf1afb20 Adding tests for recover and mapTo, adding API for creating manifests from Java and doccing things 2012-01-26 15:11:49 +01:00
Viktor Klang
b310407334 wip 2012-01-26 14:15:25 +01: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
1572da09db Changed name of the instance field as suggested. See #1702 2012-01-23 16:11:58 +01:00
Patrik Nordwall
05d4a6ed38 DOC: Extension sample for application specific settings. See #1702
* Added sample and documentation for how to create extension for application specific config
* Simplified java usage of ExtensionIdProvider, more aligned with how it is done in scala
2012-01-20 11:30:33 +01:00
Viktor Klang
149fbea5a7 Updating Copyright as per #1660 2012-01-19 18:21:06 +01:00
Jonas Bonér
a18206b81a Merge branch 'wip-remove-timeout-jboner' into master
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-14 22:46:43 +01:00
Viktor Klang
e959493e12 Enormous merge with master which probably led to the indirect unfortunate deaths of several kittens 2011-12-14 17:36:39 +01:00
Jonas Bonér
04cd2adee9 Moved Timeout classes from akka.actor._ to akka.util._.
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-14 17:34:56 +01:00
Viktor Klang
b3e5da2377 Changing Akka Futures to better conform to spec 2011-12-14 01:24:55 +01:00
Roland
5eedbdd69f rename ActorSystem.stop() to .shutdown() 2011-12-14 01:06:20 +01:00
Jonas Bonér
c9b787f029 Removed all 'actorOf' methods that does not take a 'Props', and changed all callers to use 'actorOf(Props(..))'
Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
2011-12-13 14:09:40 +01:00
Viktor Klang
b32cbbc764 Renaming Block to Await, renaming sync to result, renaming on to ready, Await.ready and Await.result looks and reads well 2011-12-12 22:50:08 +01:00
Viktor Klang
d8fe6a5509 Removing Future.get 2011-12-12 22:24:17 +01:00
Viktor Klang
67c782f82c Renaming onResult to onSuccess and onException to onFailure 2011-12-12 20:09:26 +01:00
Viktor Klang
2d418c188f Renaming completeWithResult to success, completeWithException to failure, adding tryComplete to signal whether the completion was made or not 2011-12-12 17:25:34 +01:00
Viktor Klang
7026ded91d Removing Future.result 2011-12-12 15:22:26 +01:00
Viktor Klang
7eced71a85 Removing FutureFactory and reintroducing Futures (for Java API) 2011-12-12 14:39:10 +01:00
Viktor Klang
0b6a1a0e54 Removing Future.exception plus starting to remove Future.result 2011-12-12 12:41:56 +01:00
Viktor Klang
2673a9c047 Removing Future.as[] and commenting out 2 Java Specs because the compiler can't find them? 2011-12-11 20:12:55 +01:00
Viktor Klang
1efed78de8 Removing resultOrException 2011-12-11 14:06:30 +01:00
Viktor Klang
3b1330c6d7 Tests are green with new Futures, consider this a half-way-there marker 2011-12-11 00:40:52 +01:00