|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPropertySetProxy<T>
public class PropertySetProxy<T extends Annotation>
The PropertySetProxy class is a dynamic proxy InvocationHandler class that exposes the values held within a PropertyMap as an Object implementing an annotation type interface.
This enables properties resolved using the PropertyMap's hiearchical resolution mechanism to
be exposed to the client of the proxy in the same way that JSR-175 annotations are
exposed using raw Java reflection APIs. A proxy of this type should behave identically
to the one returned from a call to AnnotatedElement.getAnnotation()
, but backed
by a richer, more dynamic resolution mechanism.
Proxy
,
InvocationHandler
,
AnnotatedElement.getAnnotation(java.lang.Class)
,
PropertySet
,
PropertyMap
Method Summary | ||
---|---|---|
PropertyMap |
getPropertyMap()
Returns the underlying PropertyMap containing the property values exposed by the proxy. |
|
Class<T> |
getPropertySet()
Returns the PropertySet annotation type associated with the proxy |
|
static
|
getProxy(Class<T> propertySet,
PropertyMap propertyMap)
Creates a new proxy instance implementing the PropertySet interface and backed by the data from the property map. |
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T extends Annotation> T getProxy(Class<T> propertySet, PropertyMap propertyMap)
propertySet
- an annotation type that has the PropertySet meta-annotationpropertyMap
- the PropertyMap containing property values backing the proxy
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public Class<T> getPropertySet()
public PropertyMap getPropertyMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |