|
Play Framework/Scala example source code file (DocumentationServer.scala)
The DocumentationServer.scala Play Framework example source code
/*
* Copyright (C) 2009-2013 Typesafe Inc. <http://www.typesafe.com>
*/
package play.docs
import java.io.File
import play.api.Mode
import play.core.BuildDocHandler
import play.core.server.{ NettyServer, ServerConfig }
/**
* A simple Play server that serves documentation. Used by the Play documentation
* project. This class is not used by the Play SBT plugin because the plugin needs
* to create a server that embeds both the user application and the Play documentation
* application.
*/
class DocumentationServer(projectPath: File, buildDocHandler: BuildDocHandler, port: java.lang.Integer) extends NettyServer(
ServerConfig(
rootDir = projectPath,
port = Some(port),
mode = Mode.Dev,
properties = System.getProperties
),
DocumentationApplication(projectPath, buildDocHandler))
Other Play Framework source code examplesHere is a short list of links related to this Play Framework DocumentationServer.scala source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.