[JBoss JIRA] (JBWS-3551) Extend UnifiedVirtualFile API with no-check findChild methods
by Alessio Soldano (JIRA)
Alessio Soldano created JBWS-3551:
-------------------------------------
Summary: Extend UnifiedVirtualFile API with no-check findChild methods
Key: JBWS-3551
URL: https://issues.jboss.org/browse/JBWS-3551
Project: JBoss Web Services
Issue Type: Task
Security Level: Public (Everyone can see)
Components: jbossws-cxf, jbossws-integration
Reporter: Alessio Soldano
Fix For: jbossws-cxf-4.1
The UnifiedVirtualFile abstraction in quite used for accessing file/resources in deployments. Most of the time, thought, the lookup of unified virtual file children leads to nothing (the required resource is simply missing) and a localized IOException is thrown. In most scenarios, that's not an actual "error", the procedure just implies trying multiple locations, and the exception is trapped and in most cases not even logged.
We need new flavors of findChild(String child) and getChildren() methods also accepting a boolean flag to suppress exception, log a message (if the log level is enabled) and return null / empty collection if nothing is found.
The new methods are to then to be used for instance to speed-up the jbossws-common ResourceResolverImpl, which currently badly affects performances in the jbossws-cxf stack, being is used whenever the Apache CXF resource resolver manager is also used.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira