1 10 11 package org.mule.config.builders; 12 13 import org.mule.config.ConfigurationException; 14 15 import javax.servlet.ServletContext ; 16 17 import java.io.InputStream ; 18 19 28 public class WebappMuleXmlConfigurationBuilder extends MuleXmlConfigurationBuilder 29 { 30 private ServletContext context; 31 32 public WebappMuleXmlConfigurationBuilder(ServletContext context) throws ConfigurationException 33 { 34 super(); 35 this.context = context; 36 } 37 38 48 protected InputStream loadConfig(String configResource) throws ConfigurationException 49 { 50 InputStream is = context.getResourceAsStream(configResource); 51 if (is == null) 52 { 53 is = super.loadConfig(configResource); 54 } 55 return is; 56 } 57 } 58 | Popular Tags |