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:
- [email protected], [email protected]
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor and Description URLLoaderAdapter(URL rootURL)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description UnifiedVirtualFile
findChild(String resourcePath)
UnifiedVirtualFile
findChildFailSafe(String resourcePath)
Same as findChild(String child) but does not throw any exception on child not found, simply returns null.List<UnifiedVirtualFile>
getChildren()
String
getName()
URL
toURL()
Constructor Detail
URLLoaderAdapter
public URLLoaderAdapter(URL rootURL)
Method Detail
findChild
public UnifiedVirtualFile findChild(String resourcePath) throws IOException
- Specified by:
findChild
in interfaceUnifiedVirtualFile
- Throws:
IOException
findChildFailSafe
public UnifiedVirtualFile findChildFailSafe(String resourcePath)
Description copied from interface:UnifiedVirtualFile
Same as findChild(String child) but does not throw any exception on child not found, simply returns null.- Specified by:
findChildFailSafe
in interfaceUnifiedVirtualFile
- Parameters:
resourcePath
- name of child to find- Returns:
- found child
toURL
public URL toURL()
- Specified by:
toURL
in interfaceUnifiedVirtualFile
getChildren
public List<UnifiedVirtualFile> getChildren() throws IOException
- Specified by:
getChildren
in interfaceUnifiedVirtualFile
- Throws:
IOException
getName
public String getName()
- Specified by:
getName
in interfaceUnifiedVirtualFile
Copyright © 2018 JBoss, by Red Hat. All rights reserved.