loadResourceProviders();
}
protected void loadResourceProviders()
{
Context tempApplicationContext = new WebApplicationContext(context);
Init init = (Init) tempApplicationContext.get(Init.class);
for (String name : init.getResourceProviders())
{
AbstractResource provider = (AbstractResource) tempApplicationContext.get(name);
if (provider != null)
{
provider.setServletContext(context);
providers.put(provider.getResourcePath(), provider);
}