diff options
| author | mjkwiatkowski <mati.rewa@gmail.com> | 2026-02-26 19:51:57 +0100 |
|---|---|---|
| committer | mjkwiatkowski <mati.rewa@gmail.com> | 2026-02-26 19:51:57 +0100 |
| commit | 82f8418f49b0564c5093c28be1ca522a628d0b4f (patch) | |
| tree | 140e6e4579229c8eefac398e58f386f270dff328 /opendc-common/src/main/kotlin/org/opendc/common/annotations | |
| parent | 4f816318b6672d40f23b22ca44cc06b77cadf961 (diff) | |
Diffstat (limited to 'opendc-common/src/main/kotlin/org/opendc/common/annotations')
| -rw-r--r-- | opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt | 6 | ||||
| -rw-r--r-- | opendc-common/src/main/kotlin/org/opendc/common/annotations/InternalUse.kt | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt b/opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt new file mode 100644 index 00000000..4ef08a71 --- /dev/null +++ b/opendc-common/src/main/kotlin/org/opendc/common/annotations/Endpoint.kt @@ -0,0 +1,6 @@ +package org.opendc.common.annotations + +@RequiresOptIn(message = "This is a registered API endpoint.") +@Retention(AnnotationRetention.BINARY) +@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.CONSTRUCTOR) +public annotation class Endpoint(val method: String, val name : String)
\ No newline at end of file diff --git a/opendc-common/src/main/kotlin/org/opendc/common/annotations/InternalUse.kt b/opendc-common/src/main/kotlin/org/opendc/common/annotations/InternalUse.kt index e32aa811..0a57aae9 100644 --- a/opendc-common/src/main/kotlin/org/opendc/common/annotations/InternalUse.kt +++ b/opendc-common/src/main/kotlin/org/opendc/common/annotations/InternalUse.kt @@ -26,3 +26,5 @@ package org.opendc.common.annotations @Retention(AnnotationRetention.BINARY) @Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.CONSTRUCTOR) public annotation class InternalUse + + |
