org.jboss.annotation.factory
Class AnnotationProxy
java.lang.Object
org.jboss.annotation.factory.AnnotationProxy
- All Implemented Interfaces:
- Serializable, InvocationHandler
- Direct Known Subclasses:
- AnnotationProxy
public class AnnotationProxy
- extends Object
- implements InvocationHandler, Serializable
InvocationHandler implementation for creating an annotation proxy.
- Author:
- Bill Burke, Kabir Khan, Ales Justin
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationProxy
public AnnotationProxy(Class<?> annotationType,
Map valueMap)
getBeanInfo
protected org.jboss.beans.info.spi.BeanInfo getBeanInfo()
- Get bean info.
- Returns:
- the annotation's bean info
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
getValue
public Object getValue(String name)
createProxy
public static Object createProxy(Map<String,Object> map,
Class<?> annotation)
throws Exception
- Create a proxy implementation for the annotation class.
- Parameters:
map
- - map of the annotation valuesannotation
- - the annotation class
- Returns:
- an instance implementing the annotation
- Throws:
Exception
- for any error
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.