Use WebAppContext.getResourceFactory()

This commit is contained in:
Joakim Erdfelt 2022-10-17 15:20:15 -05:00
parent f0856a4c7d
commit 1b790d51b4
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 3 additions and 3 deletions

View File

@ -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));
}