Skip to content

Commit

Permalink
fix scalate-guice build
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed May 13, 2024
1 parent 239ad58 commit 48713ed
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
@@ -1,6 +1,6 @@
package org.fusesource.scalate.guice

import collection.JavaConverters._
import scala.jdk.CollectionConverters._

/**
* ScalateModule that also configures the Atmosphere framework
Expand All @@ -14,7 +14,7 @@ class ScalateAtmosphereModule extends ScalateModule {
override def configureServlets(): Unit = {
// We don't need to call super.applyJerseyFilter here because Atmosphere
// will configure / is using Jersey
applyScalateServlets
applyScalateServlets()
applyAtmosphereServlets()
}

Expand All @@ -28,4 +28,4 @@ class ScalateAtmosphereModule extends ScalateModule {
val regex = "(^/.*(?<!\\.%s)$)" format fileExtensionsExcludedFromJersey.mkString("(?:", "|", ")")
serveRegex(regex).`with`(classOf[ScalateAtmosphereServlet], props.asJava)
}
}
}
Expand Up @@ -38,14 +38,14 @@ class ScalateModule extends ServletModule {
/**
* The implicit type conversion to avoid the 'with' method in the DSL
*/
implicit def builderToRichBuilder(builder: ServletModule.ServletKeyBindingBuilder) = new RichBuilder(builder)
implicit def builderToRichBuilder(builder: ServletModule.ServletKeyBindingBuilder): RichBuilder = new RichBuilder(builder)

/**
* Configure any servlets or filters for the application
*/
override def configureServlets = {
applyScalateServlets
applyJerseyFilter
applyScalateServlets()
applyJerseyFilter()
}

var scalateServletUris: List[String] = TemplateEngine.templateTypes.map(s => "*." + s)
Expand Down

0 comments on commit 48713ed

Please sign in to comment.