org.jboss.wsf.common
Class ResourceLoaderAdapter

java.lang.Object
  extended by org.jboss.wsf.common.ResourceLoaderAdapter
All Implemented Interfaces:
java.io.Serializable, org.jboss.wsf.spi.deployment.UnifiedVirtualFile

public class ResourceLoaderAdapter
extends java.lang.Object
implements org.jboss.wsf.spi.deployment.UnifiedVirtualFile

The default file adapter loads resources through an associated classloader. If no classload is set, the the thread context classloader will be used.

Since:
25.01.2007
Author:
Heiko.Braun@jboss.org, alessio.soldano@jboss.com
See Also:
Serialized Form

Constructor Summary
ResourceLoaderAdapter()
           
ResourceLoaderAdapter(java.lang.ClassLoader loader)
           
 
Method Summary
 org.jboss.wsf.spi.deployment.UnifiedVirtualFile findChild(java.lang.String resourcePath)
           
 java.util.List<org.jboss.wsf.spi.deployment.UnifiedVirtualFile> getChildren()
           
 java.lang.String getName()
           
 java.net.URL toURL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoaderAdapter

public ResourceLoaderAdapter()

ResourceLoaderAdapter

public ResourceLoaderAdapter(java.lang.ClassLoader loader)
Method Detail

findChild

public org.jboss.wsf.spi.deployment.UnifiedVirtualFile findChild(java.lang.String resourcePath)
                                                          throws java.io.IOException
Specified by:
findChild in interface org.jboss.wsf.spi.deployment.UnifiedVirtualFile
Throws:
java.io.IOException

toURL

public java.net.URL toURL()
Specified by:
toURL in interface org.jboss.wsf.spi.deployment.UnifiedVirtualFile

getChildren

public java.util.List<org.jboss.wsf.spi.deployment.UnifiedVirtualFile> getChildren()
                                                                            throws java.io.IOException
Specified by:
getChildren in interface org.jboss.wsf.spi.deployment.UnifiedVirtualFile
Throws:
java.io.IOException

getName

public java.lang.String getName()
Specified by:
getName in interface org.jboss.wsf.spi.deployment.UnifiedVirtualFile


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.