ariba.ui.aribaweb.util
Class AWJarWalker
java.lang.Object
ariba.ui.aribaweb.util.AWJarWalker
public class AWJarWalker
- extends java.lang.Object
Method Summary |
static java.util.Map<java.lang.annotation.Annotation,java.lang.reflect.AnnotatedElement> |
annotationsForClasses(java.util.Collection<java.lang.String> classNames,
java.lang.Class[] types)
|
static java.util.Map<java.lang.annotation.Annotation,java.lang.reflect.AnnotatedElement> |
annotationsForClassName(java.lang.String className,
java.lang.Class[] types)
Lookup all annotations on the given class. |
static java.util.Map<java.lang.annotation.Annotation,java.lang.reflect.AnnotatedElement> |
annotationsForClassName(java.lang.String className,
java.lang.Class[] types,
java.util.Map<java.lang.annotation.Annotation,java.lang.reflect.AnnotatedElement> annotationMap)
|
static AWJarWalker.StreamIterator |
create(java.net.URL url,
AWJarWalker.Filter filter)
|
static java.net.URL[] |
findClassPaths()
|
static java.net.URL[] |
findWebInfLibClasspaths(javax.servlet.ServletContextEvent servletContextEvent)
|
static void |
registerAnnotationListener(java.lang.Class annotationClass,
AWJarWalker.AnnotationListener listener)
|
static void |
scanClasses(AWJarWalker.Filter jarfilter,
AWJarWalker.Filter jarEntryFilter,
AWJarWalker.Visitor visitor)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AWJarWalker
public AWJarWalker()
findWebInfLibClasspaths
public static java.net.URL[] findWebInfLibClasspaths(javax.servlet.ServletContextEvent servletContextEvent)
findClassPaths
public static java.net.URL[] findClassPaths()
create
public static AWJarWalker.StreamIterator create(java.net.URL url,
AWJarWalker.Filter filter)
throws java.io.IOException
- Throws:
java.io.IOException
annotationsForClasses
public static java.util.Map<java.lang.annotation.Annotation,java.lang.reflect.AnnotatedElement> annotationsForClasses(java.util.Collection<java.lang.String> classNames,
java.lang.Class[] types)
annotationsForClassName
public static java.util.Map<java.lang.annotation.Annotation,java.lang.reflect.AnnotatedElement> annotationsForClassName(java.lang.String className,
java.lang.Class[] types)
- Lookup all annotations on the given class. Should be called late/lazily
to avoid class instantiation until absolutely necessary
- Parameters:
className
- name of class to searchtypes
- the annotation classes to filter for
- Returns:
- map from Annotation class to introspection Field, Method, or Class
annotationsForClassName
public static java.util.Map<java.lang.annotation.Annotation,java.lang.reflect.AnnotatedElement> annotationsForClassName(java.lang.String className,
java.lang.Class[] types,
java.util.Map<java.lang.annotation.Annotation,java.lang.reflect.AnnotatedElement> annotationMap)
registerAnnotationListener
public static void registerAnnotationListener(java.lang.Class annotationClass,
AWJarWalker.AnnotationListener listener)
scanClasses
public static void scanClasses(AWJarWalker.Filter jarfilter,
AWJarWalker.Filter jarEntryFilter,
AWJarWalker.Visitor visitor)
throws java.io.IOException
- Throws:
java.io.IOException
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.