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);
}
Aggregations