aboutsummaryrefslogtreecommitdiff
path: root/src/Formats/YamlOutlineService.kt
diff options
context:
space:
mode:
authorSergey Mashkov <sergey.mashkov@jetbrains.com>2015-07-31 15:35:34 +0300
committerSergey Mashkov <sergey.mashkov@jetbrains.com>2015-07-31 17:52:49 +0300
commite27fb69817b1417c1bc556a507b14f2700c7a736 (patch)
treeb6d3b5622e65651ae6510f5109d86f834ff2c337 /src/Formats/YamlOutlineService.kt
parent12f91ee7d491b21359ff8e8822c594f35b904def (diff)
downloaddokka-e27fb69817b1417c1bc556a507b14f2700c7a736.tar.gz
dokka-e27fb69817b1417c1bc556a507b14f2700c7a736.tar.bz2
dokka-e27fb69817b1417c1bc556a507b14f2700c7a736.zip
Use Guice injector and ServiceLocator to load implementations on the fly
Diffstat (limited to 'src/Formats/YamlOutlineService.kt')
-rw-r--r--src/Formats/YamlOutlineService.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Formats/YamlOutlineService.kt b/src/Formats/YamlOutlineService.kt
index cdab4eeb..7968824c 100644
--- a/src/Formats/YamlOutlineService.kt
+++ b/src/Formats/YamlOutlineService.kt
@@ -1,8 +1,9 @@
package org.jetbrains.dokka
+import com.google.inject.Inject
import java.io.File
-class YamlOutlineService(val locationService: LocationService,
+class YamlOutlineService @Inject constructor(val locationService: LocationService,
val languageService: LanguageService) : OutlineFormatService {
override fun getOutlineFileName(location: Location): File = File("${location.path}.yml")