public class MicroClassReader extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MicroClassReader.DummyClassLoader |
Constructor and Description |
---|
MicroClassReader() |
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<?> clazz,
Class<T> anclazz,
ClassLoader cl) |
<T extends Annotation> |
getAnnotation(Class<?> clazz,
Class<T> anclazz,
ClassLoader cl1,
ClassLoader cl2) |
<T extends Annotation> |
getAnnotation(Field f,
Class<T> anclazz,
ClassLoader cl) |
<T extends Annotation> |
getAnnotation(Method m,
Class<T> anclazz,
ClassLoader cl) |
static Class<?> |
getClass(Class<?> clazz,
ClassLoader cl) |
static Class<?>[] |
getClassArray(Class<?>[] clazzes,
ClassLoader cl) |
<T extends Annotation> |
getProxyAnnotation(T an,
ClassLoader cl)
Gets proxy annotation that can be invoked by corresponding classloader.
|
static boolean |
isAnnotationPresent(Class<?> clazz,
Class<? extends Annotation> anclazz,
ClassLoader cl) |
static boolean |
isAnnotationPresent(Field f,
Class<? extends Annotation> anclazz,
ClassLoader cl) |
static boolean |
isAnnotationPresent(Method m,
Class<? extends Annotation> anclazz,
ClassLoader cl) |
MicroModel |
read(String model,
String[] imports,
ClassLoader classloader,
IResourceIdentifier rid,
IComponentIdentifier root)
Load a model.
|
public MicroModel read(String model, String[] imports, ClassLoader classloader, IResourceIdentifier rid, IComponentIdentifier root)
model
- The model (e.g. file name).The
- imports (if any).public static boolean isAnnotationPresent(Class<?> clazz, Class<? extends Annotation> anclazz, ClassLoader cl)
public static boolean isAnnotationPresent(Field f, Class<? extends Annotation> anclazz, ClassLoader cl)
public static boolean isAnnotationPresent(Method m, Class<? extends Annotation> anclazz, ClassLoader cl)
public <T extends Annotation> T getAnnotation(Class<?> clazz, Class<T> anclazz, ClassLoader cl)
public <T extends Annotation> T getAnnotation(Field f, Class<T> anclazz, ClassLoader cl)
public <T extends Annotation> T getAnnotation(Method m, Class<T> anclazz, ClassLoader cl)
public <T extends Annotation> T getAnnotation(Class<?> clazz, Class<T> anclazz, ClassLoader cl1, ClassLoader cl2)
public static Class<?> getClass(Class<?> clazz, ClassLoader cl)
public static Class<?>[] getClassArray(Class<?>[] clazzes, ClassLoader cl)
public <T extends Annotation> T getProxyAnnotation(T an, ClassLoader cl)
Copyright © 2013. All Rights Reserved.