Skip to content
Permalink
Browse files
Minor update to CXFNonSpringServlet to allow for the overriding of th…
…e class loader initialization

git-svn-id: https://svn.apache.org/repos/asf/cxf/trunk@1569316 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Sergey Beryozkin committed Feb 18, 2014
1 parent e3ebd9c commit 8e4f8d875ec99323070e337d00e68d52d37f926a
Showing 1 changed file with 5 additions and 1 deletion.
@@ -76,7 +76,7 @@ public void init(ServletConfig sc) throws ServletException {
loadBus(sc);
}
if (this.bus != null) {
loader = bus.getExtension(ClassLoader.class);
loader = initClassLoader();
ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
resourceManager.addResourceResolver(new ServletContextResourceResolver(sc.getServletContext()));
if (destinationRegistry == null) {
@@ -88,6 +88,10 @@ public void init(ServletConfig sc) throws ServletException {
finalizeServletInit(sc);
}

protected ClassLoader initClassLoader() {
return bus.getExtension(ClassLoader.class);
}

private static DestinationRegistry getDestinationRegistryFromBus(Bus bus) {
DestinationFactoryManager dfm = bus.getExtension(DestinationFactoryManager.class);
try {

0 comments on commit 8e4f8d8

Please sign in to comment.