forked from TouK/nussknacker
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...er/src/main/scala/pl/touk/nussknacker/engine/modelconfig/InputConfigDuringExecution.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
package pl.touk.nussknacker.engine.modelconfig | ||
|
||
import com.typesafe.config.{Config, ConfigRenderOptions} | ||
import pl.touk.nussknacker.engine.modelconfig.InputConfigDuringExecution.serialize | ||
|
||
//intermediate representation of Config, suitable for compact serialization (see ModelConfigLoader). This config should *not* be | ||
//used directly, only after resolving (mainly via ModelData.processConfig) | ||
case class InputConfigDuringExecution(config: Config) { | ||
|
||
lazy val serialized: String = config.root().render(ConfigRenderOptions.concise()) | ||
lazy val serialized: String = serialize(config) | ||
|
||
} | ||
|
||
object InputConfigDuringExecution { | ||
def serialize(config: Config): String = config.root().render(ConfigRenderOptions.concise()) | ||
} |