|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.lang.reflect.*; |
|
|
import java.lang.reflect.*; |
|
|
|
|
|
|
|
|
class AnnotationImpl implements InvocationHandler { |
|
|
|
|
|
|
|
|
public class AnnotationImpl implements InvocationHandler { |
|
|
private Annotation annotation; |
|
|
private Annotation annotation; |
|
|
private ClassPool pool; |
|
|
private ClassPool pool; |
|
|
private ClassLoader classLoader; |
|
|
private ClassLoader classLoader; |
|
|
|
|
|
|
|
|
classLoader = loader; |
|
|
classLoader = loader; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getTypeName() |
|
|
|
|
|
{ |
|
|
|
|
|
return annotation.getTypeName(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public Object invoke(Object proxy, Method method, Object[] args) |
|
|
public Object invoke(Object proxy, Method method, Object[] args) |
|
|
throws Throwable |
|
|
throws Throwable |
|
|
{ |
|
|
{ |