Void transformer for excluding types
Brought to you by:
charliehubbard
This might be a way how to exclude all properties of certain type. For example, i would like to exclude all FileInputStream properties, globally. I expect to register FileInputStream.class with that VoidTransformer().
Later in ObjectTranformer, after the line:
----------------------------------------------
TransformerWrapper transformer = (TransformerWrapper)context.getTransformer(value);
----------------------------------------------
you can add a check if transformer is void and simply continue the loop over BeanProperties.
My workaround for now is to use NullTranformer(), but that is not what i want;)