Accessing application context
import org.springframework.context.ApplicationContextAware
import org.springframework.beans.BeansException
import org.springframework.context.ApplicationContext
class MyServiceOrController
implements ApplicationContextAware {
def applicationContext
def void setApplicationContext(
ApplicationContext appctx) throws BeansException {
applicationContext = appctx
}
}
Ei kommentteja:
Lähetä kommentti