|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.common.util.ClasspathScanner
public class ClasspathScanner
Field Summary | |
---|---|
static String |
ALL_CLASS_FILES
|
static String |
ALL_FILES
|
static String |
ALL_PACKAGES
|
static String |
CLASSPATH_URL_SCHEME
|
Constructor Summary | |
---|---|
protected |
ClasspathScanner()
|
Method Summary | |
---|---|
static Map<Class<? extends Annotation>,Collection<Class<?>>> |
findClasses(Collection<String> basePackages,
Class<? extends Annotation>... annotations)
Scans list of base packages for all classes marked with specific annotations. |
static Map<Class<? extends Annotation>,Collection<Class<?>>> |
findClasses(Collection<String> basePackages,
List<Class<? extends Annotation>> annotations)
Scans list of base packages for all classes marked with specific annotations. |
static Map<Class<? extends Annotation>,Collection<Class<?>>> |
findClasses(String basePackage,
Class<? extends Annotation>... annotations)
Scans list of base packages for all classes marked with specific annotations. |
protected Map<Class<? extends Annotation>,Collection<Class<?>>> |
findClassesInternal(Collection<String> basePackages,
List<Class<? extends Annotation>> annotations)
|
static List<URL> |
findResources(Collection<String> basePackages,
String extension)
Scans list of base packages for all resources with the given extension. |
static List<URL> |
findResources(String basePackage,
String extension)
Scans list of base packages for all resources with the given extension. |
protected List<URL> |
findResourcesInternal(Collection<String> basePackages,
String extension)
|
static Set<String> |
parsePackages(String packagesAsCsv)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ALL_FILES
public static final String ALL_CLASS_FILES
public static final String ALL_PACKAGES
public static final String CLASSPATH_URL_SCHEME
Constructor Detail |
---|
protected ClasspathScanner()
Method Detail |
---|
public static Map<Class<? extends Annotation>,Collection<Class<?>>> findClasses(String basePackage, Class<? extends Annotation>... annotations) throws IOException, ClassNotFoundException
basePackage
- base packageannotations
- annotations to discover
IOException
- class metadata is not readable
ClassNotFoundException
- class not foundpublic static Map<Class<? extends Annotation>,Collection<Class<?>>> findClasses(Collection<String> basePackages, Class<? extends Annotation>... annotations) throws IOException, ClassNotFoundException
basePackages
- list of base packagesannotations
- annotations to discover
IOException
- class metadata is not readable
ClassNotFoundException
- class not foundpublic static Map<Class<? extends Annotation>,Collection<Class<?>>> findClasses(Collection<String> basePackages, List<Class<? extends Annotation>> annotations) throws IOException, ClassNotFoundException
basePackages
- list of base packagesannotations
- annotations to discover
IOException
- class metadata is not readable
ClassNotFoundException
- class not foundprotected Map<Class<? extends Annotation>,Collection<Class<?>>> findClassesInternal(Collection<String> basePackages, List<Class<? extends Annotation>> annotations) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public static List<URL> findResources(String basePackage, String extension) throws IOException
basePackage
- base packageextension
- the extension matching resources needs to have
IOException
- resource is not accessiblepublic static List<URL> findResources(Collection<String> basePackages, String extension) throws IOException
basePackages
- list of base packagesextension
- the extension matching resources needs to have
IOException
- resource is not accessiblepublic static Set<String> parsePackages(String packagesAsCsv)
protected List<URL> findResourcesInternal(Collection<String> basePackages, String extension) throws IOException
IOException
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |