com.netgrif.application.engine.configuration.ApplicationContextProvider.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.configuration
import org.springframework.beans.BeansException
import org.springframework.context.ApplicationContext
import org.springframework.context.ApplicationContextAware
class ApplicationContextProvider implements ApplicationContextAware {
private static ApplicationContext context
@Override
void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
context = applicationContext
}
static ApplicationContext getAppContext() {
return context
}
static def getBean(String name) {
return context.getBean(name)
}
static def getBean(Class aClass) {
return context.getBean(aClass)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy