Merge pull request #27810 from akka/wip-more-deprecation-1-patriknw
Deprecate akka.Main
This commit is contained in:
commit
77ecb2e627
3 changed files with 7 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ import scala.util.control.NonFatal
|
||||||
* top level application supervisor actor. It will shutdown
|
* top level application supervisor actor. It will shutdown
|
||||||
* the actor system when the top level actor is terminated.
|
* the actor system when the top level actor is terminated.
|
||||||
*/
|
*/
|
||||||
|
@deprecated("Implement your own main class instead, from which you start the ActorSystem and actors.", "2.6.0")
|
||||||
object Main {
|
object Main {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ The plugin configuration might look like this:
|
||||||
<transformer
|
<transformer
|
||||||
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||||
<manifestEntries>
|
<manifestEntries>
|
||||||
<Main-Class>akka.Main</Main-Class>
|
<Main-Class>myapp.Main</Main-Class>
|
||||||
</manifestEntries>
|
</manifestEntries>
|
||||||
</transformer>
|
</transformer>
|
||||||
</transformers>
|
</transformers>
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,11 @@ Warnings about `TypedActor` have been [mentioned in documentation](https://doc.a
|
||||||
for many years.
|
for many years.
|
||||||
|
|
||||||
|
|
||||||
|
### akka.Main
|
||||||
|
|
||||||
|
`akka.Main` is deprecated in favour of starting the `ActorSystem` from a custom main class instead. `akka.Main` was not
|
||||||
|
adding much value and typically a custom main class is needed anyway.
|
||||||
|
|
||||||
@@ Remoting
|
@@ Remoting
|
||||||
|
|
||||||
### Default remoting is now Artery TCP
|
### Default remoting is now Artery TCP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue