SpringBootAppContext.class
@Override
protected void loadServants() {
loadAppContextListeners();
loadAppServants();
}
SpringAppContext.class
@Override
protected void loadServants() {
this.applicationContext = new ClassPathXmlApplicationContext("servants-spring.xml");
loadAppContextListeners(this.applicationContext);
loadAppServants(this.applicationContext);
loadDefaultFilter();
loadAppFilters(this.applicationContext);
}
XmlAppContext.class
@Override
protected void loadServants() throws Exception {
XMLConfigFile cfg = new XMLConfigFile();
cfg.parse(getClass().getClassLoader().getResource("servants.xml").openStream());
XMLConfigElement root = cfg.getRootElement();
ArrayList<XMLConfigElement> elements = root.getChildList();
loadInitParams(root.getChildListByName("context-param"));
loadAppContextListeners(elements);
loadAppServants(elements);
loadDefaultFilter();
loadAppFilters(elements);
}
SpringBootAppContext.class
SpringAppContext.class
XmlAppContext.class