|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.beans.BeanInspector
public class BeanInspector
A bean inspector is capable of detecting what properties can be set in a bean, setting or getting any such values and returning useful information about the bean.
| Constructor Summary | |
|---|---|
BeanInspector(Object bean)
Creates a new instance to configure a given bean. |
|
| Method Summary | |
|---|---|
Object |
getBean()
Get the bean instance. |
Property[] |
getProperties()
Get all recognized properties for this bean. |
Property |
getProperty(String name)
Get the property with the given name. |
String |
getPropertyValue(String name)
Get the value of the given property as text. |
void |
setPropertyValue(String name,
String value)
Set the given property to the given text value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanInspector(Object bean)
bean - The bean to inspect and configure.| Method Detail |
|---|
public Property[] getProperties()
throws PropertyException
PropertyException
public Property getProperty(String name)
throws PropertyException
name - The name of the property.
PropertyExceptionpublic Object getBean()
public void setPropertyValue(String name,
String value)
throws ReadOnlyException,
PropertyException
name - The name of the propertyvalue - The value as text
ReadOnlyException - If readonly
PropertyException - On failure
public String getPropertyValue(String name)
throws PropertyException
name - The name of the property.
PropertyException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||