Skip to content

StandaloneAnalysisAPISessionBuilder

class StandaloneAnalysisAPISessionBuilder(projectDisposable: Disposable, unitTestMode: Boolean)

Constructors

StandaloneAnalysisAPISessionBuilder

constructor(projectDisposable: Disposable, unitTestMode: Boolean)

Properties

application

val application: Application

project

val project: Project

Functions

build

buildKtModuleProvider

enableCacheCleaner

Enables a cache cleaner for the current session. It might attempt to drop internal caches to avoid memory issues.

The cleaner is mostly designed for long-running workloads where analyze affects so many modules that cache size blows out of proportion.

See KT-70489 for more details.

registerApplicationService

fun <T : Any> registerApplicationService(serviceInterface: Class<T>, serviceImplementation: T)
fun <T : Any> registerApplicationService(serviceImplementation: Class<T>)

registerProjectExtensionPoint

fun <T : Any> registerProjectExtensionPoint(extensionPointName: ExtensionPointName<T>, extensionClass: Class<T>)

registerProjectService

fun <T : Any> registerProjectService(serviceInterface: Class<T>, serviceImplementation: T)
fun <T : Any> registerProjectService(serviceImplementation: Class<T>)