Use WebAppContext.getResourceFactory()
This commit is contained in:
parent
f0856a4c7d
commit
1b790d51b4
|
@ -59,13 +59,13 @@ public class WebXmlConfiguration extends AbstractConfiguration
|
|||
if (url != null)
|
||||
{
|
||||
URI uri = url.toURI();
|
||||
_resourceFactory = ResourceFactory.closeable();
|
||||
dftResource = _resourceFactory.newResource(uri);
|
||||
dftResource = context.getResourceFactory().newResource(uri);
|
||||
}
|
||||
}
|
||||
if (dftResource == null)
|
||||
dftResource = context.newResource(defaultsDescriptor);
|
||||
}
|
||||
if (dftResource != null && dftResource.exists() &&!dftResource.isDirectory())
|
||||
context.getMetaData().setDefaultsDescriptor(new DefaultsDescriptor(dftResource));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue