com.taco.text
Class CompositeConverter.ReflectionSetPropertyAction
java.lang.Object
com.taco.text.CompositeConverter.ReflectionSetPropertyAction
- All Implemented Interfaces:
- CompositeConverter.ISetPropertyAction, java.io.Serializable
- Enclosing class:
- CompositeConverter
protected static final class CompositeConverter.ReflectionSetPropertyAction
- extends java.lang.Object
- implements CompositeConverter.ISetPropertyAction, java.io.Serializable
An implementation of ISetPropertyAction
which uses
reflection to set the property. Setting the property this way is much
slower than using a direct method call, but the singleton instance
of this class can be used for many different methods. So this class
is most useful for infrequently set properties, to save memory.
- See Also:
- Serialized Form
Method Summary |
void |
setProperty(java.lang.Object composite,
java.lang.Object propertyKey,
java.lang.Object propertyValue,
java.util.Map propertyMap)
Set the property of the composite. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
public static final CompositeConverter.ReflectionSetPropertyAction instance
- The singleton instance of this class.
setProperty
public void setProperty(java.lang.Object composite,
java.lang.Object propertyKey,
java.lang.Object propertyValue,
java.util.Map propertyMap)
throws java.lang.Exception
- Description copied from interface:
CompositeConverter.ISetPropertyAction
- Set the property of the composite.
- Specified by:
setProperty
in interface CompositeConverter.ISetPropertyAction
- Throws:
java.lang.Exception