From: David ‘Bombe’ Roden Date: Fri, 17 May 2019 14:54:04 +0000 (+0200) Subject: 🚚 Rename file containing annotations X-Git-Tag: v79^2~29 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=90cd4ab2d7c55e2a8acc9e0fd3d8bad5f9d24efa 🚚 Rename file containing annotations --- diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt new file mode 100644 index 0000000..0bda133 --- /dev/null +++ b/src/main/kotlin/net/pterodactylus/sone/web/page/Annotations.kt @@ -0,0 +1,11 @@ +package net.pterodactylus.sone.web.page + +import net.pterodactylus.util.web.* + +annotation class MenuName(val value: String) + +val Page<*>.menuName get() = javaClass.getAnnotation(MenuName::class.java)?.value + +annotation class TemplatePath(val value: String) + +val Page<*>.templatePath get() = javaClass.getAnnotation(TemplatePath::class.java)?.value diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt deleted file mode 100644 index 0bda133..0000000 --- a/src/main/kotlin/net/pterodactylus/sone/web/page/MenuName.kt +++ /dev/null @@ -1,11 +0,0 @@ -package net.pterodactylus.sone.web.page - -import net.pterodactylus.util.web.* - -annotation class MenuName(val value: String) - -val Page<*>.menuName get() = javaClass.getAnnotation(MenuName::class.java)?.value - -annotation class TemplatePath(val value: String) - -val Page<*>.templatePath get() = javaClass.getAnnotation(TemplatePath::class.java)?.value