nl.beesting.beangenerator.locators.methodlocators
Class AbstractClassPathResolver

java.lang.Object
  extended by nl.beesting.beangenerator.locators.methodlocators.AbstractClassPathResolver
Direct Known Subclasses:
TomcatClassPathResolver

public abstract class AbstractClassPathResolver
extends java.lang.Object

AbstractClassPathResolver gets the java classpath and put class directories and jar files in separate lists for the ClassResolvers to use.


Constructor Summary
AbstractClassPathResolver()
           
 
Method Summary
protected  void add(java.io.File file)
          Add a to the jar file or directory list
protected  void add(java.lang.String file)
          Add a to the jar file or directory list
abstract  void addAddtionalPaths()
          Implementors must implement this method to add to the default classpath.
 java.lang.Class<?> findClass(java.lang.String name)
           
 java.util.List<java.io.File> getDirectories()
           
 java.util.List<java.io.File> getJarFiles()
           
 void setClassResolvers(java.util.List<ClassResolver> classResolvers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractClassPathResolver

public AbstractClassPathResolver()
Method Detail

add

protected void add(java.lang.String file)
Add a to the jar file or directory list

Parameters:
file - to add to te list

add

protected void add(java.io.File file)
Add a to the jar file or directory list

Parameters:
file - to add to te list

findClass

public java.lang.Class<?> findClass(java.lang.String name)
Parameters:
name -
Returns:

addAddtionalPaths

public abstract void addAddtionalPaths()
Implementors must implement this method to add to the default classpath.


setClassResolvers

public void setClassResolvers(java.util.List<ClassResolver> classResolvers)
Parameters:
classResolvers - the classResolvers to set

getJarFiles

public java.util.List<java.io.File> getJarFiles()
Returns:
the jarFiles

getDirectories

public java.util.List<java.io.File> getDirectories()
Returns:
the directories


Copyright 2008. All Rights Reserved.