| Modifier and Type | Field and Description |
|---|---|
| private static final Method | MAP_SET
The java.util.map.put method used as an active marker in MapSet. |
| private final Object | property
The property. |
| Access | Constructor and Description |
|---|---|
| public | MapSetExecutor(Introspector
the introspector is, Class<?> the class that might implement the map interface clazz, Object the key to use as argument in map.put(key,value) key, Object the value to use as argument in map.put(key,value) value)Creates an instance checking for the Map interface. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static Method | |
| public Object | execute(final Object
The object to set the property in. obj, Object The value. value)Implements abstract org. |
| public Object | getTargetProperty()
Overrides org. |
| public Object | tryExecute(final Object
The object to invoke the method from. obj, Object The property to set in the object. key, Object The value to use as the property value. value)Overrides org. |
| MAP_SET | back to summary |
|---|---|
| private static final Method MAP_SET The java.util.map.put method used as an active marker in MapSet. | |
| property | back to summary |
|---|---|
| private final Object property The property. | |
| MapSetExecutor | back to summary |
|---|---|
| public MapSetExecutor(Introspector is, Class<?> clazz, Object key, Object value) Creates an instance checking for the Map interface.
| |
| discover | back to summary |
|---|---|
| pack-priv static Method discover(Class<?> clazz) Finds the method to perform 'set' on a map. | |
| execute | back to summary |
|---|---|
| public Object execute(final Object obj, Object value) throws IllegalAccessException, InvocationTargetException Implements abstract org. Doc from org. Sets the property value of an object.
| |
| getTargetProperty | back to summary |
|---|---|
| public Object getTargetProperty() Overrides org. Doc from org. Gets the property targeted by this executor. | |
| tryExecute | back to summary |
|---|---|
| public Object tryExecute(final Object obj, Object key, Object value) Overrides org. Doc from org. Tries to reuse this executor, checking that it is compatible with the actual set of arguments. Compatibility means that:
| |