public class Stringxmlapplicationcontext extends Abstractxmlapplicationcontext {
Private resource[] configresources;
Public Stringxmlapplicationcontext (String stringxml) {
This (new string[] {stringxml}, NULL);
}
Public Stringxmlapplicationcontext (string[] stringxmls) {
This (stringxmls, null);
}
Public Stringxmlapplicationcontext (string[] stringxmls, ApplicationContext parent) {
Super (parent);
This.configresources = new Resource[stringxmls.length];
for (int i = 0; i < stringxmls.length; i++) {
This.configresources[i] = new Bytearrayresource (Stringxmls[i].getbytes ());
}
Refresh ();
}
Protected resource[] Getconfigresources () {
return this.configresources;
}
Public ClassLoader getClassLoader () {
Return This.getclass (). getClassLoader ();
}
}
Custom Spring ApplicationContext supports dynamic subscription spring configuration