Add WebAppContext.getResourceFactory()
This commit is contained in:
parent
58eea0541c
commit
8877f52dd7
|
@ -369,6 +369,11 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
|
|||
((WebAppClassLoader)classLoader).setName(name);
|
||||
}
|
||||
|
||||
public ResourceFactory getResourceFactory()
|
||||
{
|
||||
return ResourceFactory.of(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Resource getResource(String pathInContext) throws MalformedURLException
|
||||
{
|
||||
|
|
|
@ -378,6 +378,11 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
|
|||
((WebAppClassLoader)classLoader).setName(name);
|
||||
}
|
||||
|
||||
public ResourceFactory getResourceFactory()
|
||||
{
|
||||
return ResourceFactory.of(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Resource getResource(String pathInContext) throws MalformedURLException
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue