Package org.apache.wicket.spring
Interface ISpringContextLocator
-
- All Superinterfaces:
IClusterable
,Serializable
- All Known Implementing Classes:
SpringContextLocatorMock
public interface ISpringContextLocator extends IClusterable
Interface representing object that can locate a spring context. The implementation should take up little room when serialized. SpringObjectLocator uses this interface to locate the spring context so that it in turn can locate a bean. Ideal implementations use a static lookup to locate the context. For Example:class SpringContextLocator implements ISpringContextLocator { public ApplicationContext getSpringContext() { // MyApplication is the subclass of WebApplication used by the application return ((MyApplication)Application.get()).getContext(); } }
- Author:
- Igor Vaynberg (ivaynberg)
- See Also:
SpringBeanLocator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.context.ApplicationContext
getSpringContext()
Getter for spring application context
-
-
-
Method Detail
-
getSpringContext
org.springframework.context.ApplicationContext getSpringContext()
Getter for spring application context- Returns:
- spring application context
-
-