Skip to content

Commit 25ff921

Browse files
committed
Making most of the innards of microkernel.Main private
1 parent ee4a7ce commit 25ff921

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

akka-kernel/src/main/scala/akka/kernel/Main.scala

+6-6
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ trait Bootable {
5959
* Main class for running the microkernel.
6060
*/
6161
object Main {
62-
val quiet = getBoolean("akka.kernel.quiet")
62+
private val quiet = getBoolean("akka.kernel.quiet")
6363

64-
def log(s: String) = if (!quiet) println(s)
64+
private def log(s: String) = if (!quiet) println(s)
6565

6666
def main(args: Array[String]) = {
6767
if (args.isEmpty) {
@@ -90,7 +90,7 @@ object Main {
9090
log("Successfully started Akka")
9191
}
9292

93-
def createClassLoader(): ClassLoader = {
93+
private def createClassLoader(): ClassLoader = {
9494
if (ActorSystem.GlobalHome.isDefined) {
9595
val home = ActorSystem.GlobalHome.get
9696
val deploy = new File(home, "deploy")
@@ -106,7 +106,7 @@ object Main {
106106
}
107107
}
108108

109-
def loadDeployJars(deploy: File): ClassLoader = {
109+
private def loadDeployJars(deploy: File): ClassLoader = {
110110
val jars = deploy.listFiles.filter(_.getName.endsWith(".jar"))
111111

112112
val nestedJars = jars flatMap { jar
@@ -122,7 +122,7 @@ object Main {
122122
new URLClassLoader(urls, Thread.currentThread.getContextClassLoader)
123123
}
124124

125-
def addShutdownHook(bootables: Seq[Bootable]): Unit = {
125+
private def addShutdownHook(bootables: Seq[Bootable]): Unit = {
126126
Runtime.getRuntime.addShutdownHook(new Thread(new Runnable {
127127
def run = {
128128
log("")
@@ -138,7 +138,7 @@ object Main {
138138
}))
139139
}
140140

141-
def banner = """
141+
private def banner = """
142142
==============================================================================
143143
144144
ZZ:

0 commit comments

Comments
 (0)