public interface ISpringContextLocator extends IClusterable
class SpringContextLocator implements ISpringContextLocator { public ApplicationContext getSpringContext() { // MyApplication is the subclass of WebApplication used by the application return ((MyApplication)Application.get()).getContext(); } }
SpringBeanLocator
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ApplicationContext |
getSpringContext()
Getter for spring application context
|
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.