Fixing ticket #530
This commit is contained in:
parent
b69982431a
commit
2b9bfa919e
3 changed files with 4 additions and 1 deletions
|
|
@ -62,6 +62,8 @@ import scala.reflect.BeanProperty
|
|||
*/
|
||||
abstract class UntypedActor extends Actor {
|
||||
|
||||
def logger = log.logger //Give the Java guys a break
|
||||
|
||||
def getContext(): ActorRef = self
|
||||
|
||||
final protected def receive = {
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ import java.net.UnknownHostException
|
|||
* @author <a href="http://jonasboner.com">Jonas Bonér</a>
|
||||
*/
|
||||
trait Logging {
|
||||
@transient lazy val log = Logger(this.getClass.getName)
|
||||
@transient val log = Logger(this.getClass.getName)
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -7,5 +7,6 @@ import akka.actor.UntypedActor;
|
|||
*/
|
||||
public class SampleUntypedActor extends UntypedActor {
|
||||
public void onReceive(Object message) {
|
||||
logger().debug("Yay! I haz a message!");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue