org.jboss.deployers.vfs.plugins.structure
Class VFSDeploymentResourceLoaderImpl

java.lang.Object
  extended by org.jboss.deployers.vfs.plugins.structure.VFSDeploymentResourceLoaderImpl
All Implemented Interfaces:
DeploymentResourceLoader, VFSDeploymentResourceLoader

public class VFSDeploymentResourceLoaderImpl
extends Object
implements VFSDeploymentResourceLoader

VFSDeploymentResourceLoader.

Version:
$Revision: 1.1 $
Author:
Adrian Brock

Constructor Summary
VFSDeploymentResourceLoaderImpl(org.jboss.virtual.VirtualFile root)
          Create a new VFSDeploymentResourceLoader.
 
Method Summary
 org.jboss.virtual.VirtualFile getFile(String path)
          Get a virtual file
 URL getResource(String name)
          Get a resource
 Enumeration<URL> getResources(String name)
          Get resources
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VFSDeploymentResourceLoaderImpl

public VFSDeploymentResourceLoaderImpl(org.jboss.virtual.VirtualFile root)
Create a new VFSDeploymentResourceLoader.

Parameters:
root - the root
Throws:
IllegalArgumentException - for a null root
Method Detail

getFile

public org.jboss.virtual.VirtualFile getFile(String path)
Description copied from interface: VFSDeploymentResourceLoader
Get a virtual file

Specified by:
getFile in interface VFSDeploymentResourceLoader
Parameters:
path - the relative path of the file
Returns:
the virtual file or null if not found

getResource

public URL getResource(String name)
Description copied from interface: DeploymentResourceLoader
Get a resource

Specified by:
getResource in interface DeploymentResourceLoader
Parameters:
name - the name of the resource
Returns:
the resource url

getResources

public Enumeration<URL> getResources(String name)
                              throws IOException
Description copied from interface: DeploymentResourceLoader
Get resources

Specified by:
getResources in interface DeploymentResourceLoader
Parameters:
name - the name of the resource
Returns:
the resource urls
Throws:
IOException - for any error


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