Apache CXF API

org.apache.cxf.jaxrs.ext.search
Class Beanspector<T>

java.lang.Object
  extended by org.apache.cxf.jaxrs.ext.search.Beanspector<T>

public class Beanspector<T>
extends Object

Bean introspection utility.


Constructor Summary
Beanspector(Class<T> tclass)
           
Beanspector(T tobj)
           
 
Method Summary
 Class<?> getAccessorType(String getterOrSetterName)
           
 T getBean()
           
 Set<String> getGettersNames()
           
 Set<String> getSettersNames()
           
 Object getValue(Method getter)
           
 Object getValue(String getterName)
           
 Beanspector<T> instantiate()
           
 Beanspector<T> setValue(Map<String,Object> settersWithValues)
           
 Beanspector<T> setValue(Method setter, Object value)
           
 Beanspector<T> setValue(String setterName, Object value)
           
 Beanspector<T> swap(T newobject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Beanspector

public Beanspector(Class<T> tclass)

Beanspector

public Beanspector(T tobj)
Method Detail

getBean

public T getBean()

getGettersNames

public Set<String> getGettersNames()

getSettersNames

public Set<String> getSettersNames()

getAccessorType

public Class<?> getAccessorType(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

getValue

public Object getValue(String getterName)
                throws Throwable
Throws:
Throwable

getValue

public Object getValue(Method getter)
                throws Throwable
Throws:
Throwable

Apache CXF API

Apache CXF