Interface ISpringContextLocator

  • All Superinterfaces:
    IClusterable, Serializable
    All Known Implementing Classes:

    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();
    Igor Vaynberg (ivaynberg)
    See Also:
    • Method Detail

      • getSpringContext

        org.springframework.context.ApplicationContext getSpringContext()
        Getter for spring application context
        spring application context