|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.bristleback.server.bristle.utils.Setter
public class Setter
Utility class that holds information about object setter. Contains information about setter method and field name.
Created on: 2011-02-23 11:40:30
| Constructor Summary | |
|---|---|
Setter(java.lang.String fieldName,
java.lang.reflect.Method setterMethod)
Creates a new Setter object with complete information. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFieldName()
Name of the returned field name. |
java.lang.Class |
getFieldType()
Gets the type of field. |
java.lang.reflect.Method |
getSetterMethod()
Getter method. |
void |
invoke(java.lang.Object bean,
java.lang.Object value)
Invokes getter method on the object given as parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Setter(java.lang.String fieldName,
java.lang.reflect.Method setterMethod)
fieldName - name of the field.setterMethod - getter method.| Method Detail |
|---|
public void invoke(java.lang.Object bean,
java.lang.Object value)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
BristleRuntimeException to throw.
bean - the object the underlying method is invoked from.value - value of field.
java.lang.IllegalAccessException - exception thrown for further processing.
java.lang.reflect.InvocationTargetException - exception thrown for further processing.public java.lang.Class getFieldType()
public java.lang.String getFieldName()
public java.lang.reflect.Method getSetterMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||