-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parameterType for Complex Type #93
Comments
Custom POJO types are not supported in batch property injection. However, you can inject into fields of type java.util.List with a comma-separated values, or java.util.Map with a comma-separated key-value pairs. |
My problem is that I have a So my approach is: class PhonePojo{
String id;
String phone;
String contactId;
} By the way, thanks @chengfang for the fast reply and I think the issue can be closed 👍 |
Hi @chengfang , sorry for reopening this issue but do you think that this could be implemented ? If so I'd like to have a try implementing this functionality |
JBeret uses CDI to perform the property @Inject. Without knowing the target POJO type, it's hard to do it in JBeret. However, it will be easier to do it in your application. For instance, you can inject the value as a JSON string, and deserialize the injected JSON string into the target object with library like Jackson. <property name="foo" value='
{
"id": 123,
"phone": "123-456-7890",
"contacts": "xxx"
}
'/> |
It is supported yet?
Let's say you have
<property name="parameterNames" value="id, phone, contact.Name"/>
. I'm interested on being able to fetch the value contact.NameThe text was updated successfully, but these errors were encountered: