Package aQute.bnd.help
Class AttrsHandler
- java.lang.Object
-
- aQute.bnd.help.AttrsHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
class AttrsHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
The invocation handler that is based on Attrs. Although we could use the normal Map handler built into the Converter, it is better to convert from the actual typed values in Attrs.
-
-
Constructor Summary
Constructors Constructor Description AttrsHandler(Attrs attrs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <X> X
getProperties(Attrs attrs, java.lang.Class<X> type)
java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
java.lang.String
toString()
-
-
-
Field Detail
-
attrs
final Attrs attrs
-
-
Constructor Detail
-
AttrsHandler
public AttrsHandler(Attrs attrs)
-
-
Method Detail
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
getProperties
public static <X> X getProperties(Attrs attrs, java.lang.Class<X> type)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-