Package org.apache.cxf.jaxrs.ext.search
Class Beanspector<T>
- java.lang.Object
-
- org.apache.cxf.jaxrs.ext.search.Beanspector<T>
-
public class Beanspector<T> extends Object
Bean introspection utility.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBeanspector.TypeInfo
-
Constructor Summary
Constructors Constructor Description Beanspector(Class<T> tclass)Beanspector(T tobj)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Beanspector.TypeInfogetAccessorTypeInfo(String getterOrSetterName)TgetBean()Set<String>getGettersNames()Set<String>getSettersNames()ObjectgetValue(Method getter)ObjectgetValue(String getterName)Beanspector<T>instantiate()Beanspector<T>setValue(Method setter, Object value)Beanspector<T>setValue(String setterName, Object value)Beanspector<T>setValue(Map<String,Object> settersWithValues)Beanspector<T>swap(T newobject)
-
-
-
Method Detail
-
getBean
public T getBean()
-
getAccessorTypeInfo
public Beanspector.TypeInfo getAccessorTypeInfo(String getterOrSetterName) throws Exception
- Throws:
Exception
-
swap
public Beanspector<T> swap(T newobject) throws Exception
- Throws:
Exception
-
instantiate
public Beanspector<T> instantiate() throws Exception
- Throws:
Exception
-
setValue
public Beanspector<T> setValue(String setterName, Object value) throws Throwable
- Throws:
Throwable
-
setValue
public Beanspector<T> setValue(Map<String,Object> settersWithValues) throws Throwable
- Throws:
Throwable
-
setValue
public Beanspector<T> setValue(Method setter, Object value) throws Throwable
- Throws:
Throwable
-
-