Package org.jboss.wsf.spi.util
Class URLLoaderAdapter
- java.lang.Object
-
- org.jboss.wsf.spi.util.URLLoaderAdapter
-
- All Implemented Interfaces:
Serializable,UnifiedVirtualFile
public class URLLoaderAdapter extends Object implements UnifiedVirtualFile
Load resources through a URLClassLoader.
NOTE: The associated classloader doesn't do parent delegation.- Since:
- 25.01.2007
- Author:
- Heiko.Braun@jboss.org, alessio.soldano@jboss.com
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description URLLoaderAdapter(URL rootURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnifiedVirtualFilefindChild(String resourcePath)UnifiedVirtualFilefindChildFailSafe(String resourcePath)Same as findChild(String child) but does not throw any exception on child not found, simply returns null.List<UnifiedVirtualFile>getChildren()StringgetName()URLtoURL()
-
-
-
Constructor Detail
-
URLLoaderAdapter
public URLLoaderAdapter(URL rootURL)
-
-
Method Detail
-
findChild
public UnifiedVirtualFile findChild(String resourcePath) throws IOException
- Specified by:
findChildin interfaceUnifiedVirtualFile- Throws:
IOException
-
findChildFailSafe
public UnifiedVirtualFile findChildFailSafe(String resourcePath)
Description copied from interface:UnifiedVirtualFileSame as findChild(String child) but does not throw any exception on child not found, simply returns null.- Specified by:
findChildFailSafein interfaceUnifiedVirtualFile- Parameters:
resourcePath- name of child to find- Returns:
- found child
-
toURL
public URL toURL()
- Specified by:
toURLin interfaceUnifiedVirtualFile
-
getChildren
public List<UnifiedVirtualFile> getChildren() throws IOException
- Specified by:
getChildrenin interfaceUnifiedVirtualFile- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceUnifiedVirtualFile
-
-