org.jboss.osgi.framework.util
Class VirtualFileResourceLoader

java.lang.Object
  extended by org.jboss.osgi.framework.util.VirtualFileResourceLoader
All Implemented Interfaces:
org.jboss.modules.ResourceLoader

public final class VirtualFileResourceLoader
extends Object
implements org.jboss.modules.ResourceLoader

An ResourceLoader that is backed by a VirtualFile pointing to an archive.

Since:
29-Jun-2010
Author:
thomas.diesler@jboss.com, David Bosschaert

Constructor Summary
VirtualFileResourceLoader(VirtualFile virtualFile)
           
 
Method Summary
 org.jboss.modules.ClassSpec getClassSpec(String fileName)
           
 String getLibrary(String name)
           
 org.jboss.modules.PackageSpec getPackageSpec(String name)
           
 Collection<String> getPaths()
           
 org.jboss.modules.Resource getResource(String name)
           
 String getRootName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualFileResourceLoader

public VirtualFileResourceLoader(VirtualFile virtualFile)
Method Detail

getRootName

public String getRootName()
Specified by:
getRootName in interface org.jboss.modules.ResourceLoader

getClassSpec

public org.jboss.modules.ClassSpec getClassSpec(String fileName)
                                         throws IOException
Specified by:
getClassSpec in interface org.jboss.modules.ResourceLoader
Throws:
IOException

getPackageSpec

public org.jboss.modules.PackageSpec getPackageSpec(String name)
                                             throws IOException
Specified by:
getPackageSpec in interface org.jboss.modules.ResourceLoader
Throws:
IOException

getResource

public org.jboss.modules.Resource getResource(String name)
Specified by:
getResource in interface org.jboss.modules.ResourceLoader

getLibrary

public String getLibrary(String name)
Specified by:
getLibrary in interface org.jboss.modules.ResourceLoader

getPaths

public Collection<String> getPaths()
Specified by:
getPaths in interface org.jboss.modules.ResourceLoader


Copyright © 2012. All Rights Reserved.