♻️ Turn new elements properties into methods
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / page / PageMakerInteractionFactory.kt
1 package net.pterodactylus.sone.web.page
2
3 import com.google.inject.*
4 import freenet.clients.http.*
5
6 @ImplementedBy(DefaultPageMakerInteractionFactory::class)
7 interface PageMakerInteractionFactory {
8
9         fun createPageMaker(toadletContext: ToadletContext, pageTitle: String): PageMakerInteraction
10
11 }
12
13 class DefaultPageMakerInteractionFactory : PageMakerInteractionFactory {
14
15         override fun createPageMaker(toadletContext: ToadletContext, pageTitle: String) =
16                         PageMakerInteraction(toadletContext, pageTitle)
17
18 }