org.jboss.deployers.vfs.plugins.annotations
Class DeploymentUnitClassPath

java.lang.Object
  extended by org.jboss.deployers.vfs.plugins.annotations.DeploymentUnitClassPath
All Implemented Interfaces:
javassist.ClassPath

public class DeploymentUnitClassPath
extends Object
implements javassist.ClassPath

Javassist ClassPath impl based on deployment unit

Author:
Ales Justin

Constructor Summary
DeploymentUnitClassPath(VFSDeploymentUnit unit)
           
 
Method Summary
 void close()
           
 URL find(String className)
           
protected  org.jboss.virtual.VirtualFile findFile(String className)
          Find file.
 InputStream openClassfile(String className)
           
 void setExcludeFilter(org.jboss.classloader.spi.filter.ClassFilter excludeFilter)
          Set exclude filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentUnitClassPath

public DeploymentUnitClassPath(VFSDeploymentUnit unit)
Method Detail

setExcludeFilter

public void setExcludeFilter(org.jboss.classloader.spi.filter.ClassFilter excludeFilter)
Set exclude filter.

Parameters:
excludeFilter - the exclude filter

findFile

protected org.jboss.virtual.VirtualFile findFile(String className)
                                          throws IOException
Find file.

Parameters:
className - the classname we're looking for
Returns:
virtual file or null if not found
Throws:
IOException - for any exception

openClassfile

public InputStream openClassfile(String className)
                          throws javassist.NotFoundException
Specified by:
openClassfile in interface javassist.ClassPath
Throws:
javassist.NotFoundException

find

public URL find(String className)
Specified by:
find in interface javassist.ClassPath

close

public void close()
Specified by:
close in interface javassist.ClassPath


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