You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.setResponse(String.format("Hi %s. Hello From Java", msg.getLanguage()))
395
+
.build())
396
+
.state(updateState(msg.getLanguage()))
397
+
.reply();
398
+
}
399
+
}
389
400
```
390
401
391
402
This method `setLanguage` is called when the `SetLanguage` action is invoked. It takes an `ActorContext<State>` and a `Request` message as parameters.
@@ -501,6 +512,8 @@ volumes:
501
512
502
513
```
503
514
515
+
> **_NOTE:_** Or just use the [Spawn CLI](https://github.com/eigr/spawn?tab=readme-ov-file#getting-started-with-spawn) to take care of the development environment for you.
516
+
504
517
You may also want your Actors to be initialized with some dependent objects similarly to how you would use the
505
518
dependency injection pattern.
506
519
In this case, it is enough to declare a constructor that receives a single argument for its actor.
0 commit comments