Search in sources :

Example 6 with Container

use of com.opensymphony.xwork2.inject.Container in project onebusaway-application-modules by camsys.

the class ConfigurationValueFunction method configValue.

public static String configValue(String key) {
    Dispatcher instance = Dispatcher.getInstance();
    if (instance == null)
        return null;
    Container container = instance.getContainer();
    ConfigurationValueFunction cv = new ConfigurationValueFunction();
    container.inject(cv);
    return cv.lookup(key);
}
Also used : Container(com.opensymphony.xwork2.inject.Container) Dispatcher(org.apache.struts2.dispatcher.Dispatcher)

Aggregations

Container (com.opensymphony.xwork2.inject.Container)4 Dispatcher (org.apache.struts2.dispatcher.Dispatcher)3 PluginSubMenuContainer (com.agiletec.apsadmin.system.plugin.PluginSubMenuContainer)1 ContainerBuilder (com.opensymphony.xwork2.inject.ContainerBuilder)1 ValueStack (com.opensymphony.xwork2.util.ValueStack)1 ArrayList (java.util.ArrayList)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 JspException (javax.servlet.jsp.JspException)1 ActionMapper (org.apache.struts2.dispatcher.mapper.ActionMapper)1 ActionMapping (org.apache.struts2.dispatcher.mapper.ActionMapping)1 WebApplicationContext (org.springframework.web.context.WebApplicationContext)1