-
Improvement
-
Resolution: Fixed
-
Neutral
-
None
-
-
Empty show more show less
-
Kromeriz 31
-
2
Node2Bean supports setting the content/node where the bean was read from using a setter called setContent. However it only works with the Content object, not a plain JCR Node object.
In Node2BeanTransformerImpl#setProperty we should check the type of the setter and be able to set it using both types.
The way the feature is implemented we support these variations:
- setContent(Content)
- setContent(SystemContentWrapper)
- setContent(LazyContentWrapper)
- setContent(ContentWrapper)
- setContent(AbstractContent)
- setContent(ContentHandler)
We should not break any of these, so something like:
if (propertyName.equals("content") && value == null && descriptor.getType().getType().isAssignableFrom(SystemContentWrapper.class)) { ... }
Acceptance criteria