All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cloud.hedou.abp.starter.AbpContext.kt Maven / Gradle / Ivy

Go to download

When the functions of ABP cannot meet service requirements, the Spring Boot framework can be used to expand its own services to make use of abundant Java frameworks on the market.

There is a newer version: 1.0.1
Show newest version
package cloud.hedou.abp.starter

import org.springframework.beans.factory.getBean
import org.springframework.context.ApplicationContext
import org.springframework.context.ApplicationContextAware

class AbpContext : ApplicationContextAware {

    override fun setApplicationContext(applicationContext: ApplicationContext) {
        context = applicationContext
    }

    companion object {

        lateinit var context: ApplicationContext
            private set

        inline fun  getBean(): T = context.getBean()
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy