org.jboss.wsf.spi.util
Class URLLoaderAdapter

java.lang.Object
  extended by 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
URLLoaderAdapter(URL rootURL)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLLoaderAdapter

public URLLoaderAdapter(URL rootURL)
Method Detail

findChild

public UnifiedVirtualFile findChild(String resourcePath)
                             throws IOException
Specified by:
findChild in interface UnifiedVirtualFile
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 interface UnifiedVirtualFile
Returns:

toURL

public URL toURL()
Specified by:
toURL in interface UnifiedVirtualFile

getChildren

public List<UnifiedVirtualFile> getChildren()
                                     throws IOException
Specified by:
getChildren in interface UnifiedVirtualFile
Throws:
IOException

getName

public String getName()
Specified by:
getName in interface UnifiedVirtualFile


Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.