Skip to content

Commit

Permalink
added javadocs for api
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoMarlir committed May 18, 2024
1 parent 9469fd2 commit da0605d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions api/src/main/kotlin/me/blueamethyst/bluecloud/api/BlueCloudApi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,37 @@ package me.blueamethyst.bluecloud.api

import com.google.inject.Injector

/**
* This is the api entrypoint for the BlueCloud API.
* It provides access to the application's dependency injection system.
*/
abstract class BlueCloudApi {

companion object {
/**
* The singleton instance of the BlueCloudApi.
*/
private lateinit var instance: BlueCloudApi

/**
* Returns the singleton instance of the BlueCloudApi.
* @return the singleton instance of the BlueCloudApi.
*/
fun getInstance(): BlueCloudApi {
return instance
}
}

/**
* Initializes the singleton instance of the BlueCloudApi.
*/
init {
instance = this
}

/**
* Returns the Injector for the application's dependency injection system.
* @return the Injector for the application's dependency injection system.
*/
abstract fun getInjector(): Injector
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
package me.blueamethyst.bluecloud.api.annontations

/**
* Annotation for getting a platform-specific coroutine scope.
* This annotation can be used on properties, value parameters, expressions, and functions.
*/
@Target(AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.EXPRESSION,
AnnotationTarget.FUNCTION
)
Expand Down

0 comments on commit da0605d

Please sign in to comment.