de.ukn.hci.squidy.manager.scanner
Class ClasspathScanner

java.lang.Object
  extended by de.ukn.hci.squidy.manager.scanner.ClasspathScanner
Direct Known Subclasses:
AnnotationScanner

public abstract class ClasspathScanner
extends Object

ClasspathScanner.

Date: Feb 8, 2008 Time: 11:29:37 AM

Version:
$Id: ClasspathScanner.java 30 2009-09-18 22:23:35Z nitsche $$
Author:
Roman Rädle, Roman.Raedle@uni-konstanz.de, University of Konstanz

Nested Class Summary
static interface ClasspathScanner.ClassMatcher
           
 
Field Summary
static ClasspathScanner.ClassMatcher DEFAULT_CLASSNAME_MATCHER
           
protected static String[] DEFAULT_PACKAGE_FILTER
           
 
Constructor Summary
protected ClasspathScanner()
           
 
Method Summary
 void addMatcher(ClasspathScanner.ClassMatcher matcher)
           
protected  boolean checkAllMatchers(Class cl)
           
protected  Classpath getClasspath()
           
protected  Set<String> getLocationFilters()
           
protected  Set<String> getPackageFilters()
           
protected static Class loadClass(ClassLoader loader, String name)
           
protected  boolean matchesAny(String text, Set<String> filters)
           
protected  void setLocationFilters(Set<String> locationFilters)
           
protected  void setPackageFilters(Set<String> packageFilters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PACKAGE_FILTER

protected static final String[] DEFAULT_PACKAGE_FILTER

DEFAULT_CLASSNAME_MATCHER

public static final ClasspathScanner.ClassMatcher DEFAULT_CLASSNAME_MATCHER
Constructor Detail

ClasspathScanner

protected ClasspathScanner()
Method Detail

getClasspath

protected final Classpath getClasspath()

getLocationFilters

protected final Set<String> getLocationFilters()

setLocationFilters

protected final void setLocationFilters(Set<String> locationFilters)

getPackageFilters

protected final Set<String> getPackageFilters()

setPackageFilters

protected final void setPackageFilters(Set<String> packageFilters)

addMatcher

public final void addMatcher(ClasspathScanner.ClassMatcher matcher)

matchesAny

protected final boolean matchesAny(String text,
                                   Set<String> filters)

checkAllMatchers

protected final boolean checkAllMatchers(Class cl)

loadClass

protected static final Class loadClass(ClassLoader loader,
                                       String name)
                                throws Exception
Throws:
Exception


Copyright © 2007-2010 Human-Computer-Interaction :: University of Konstanz. All Rights Reserved.