[
https://issues.apache.org/jira/browse/CXF-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13806123#comment-13806123
]
Andriy Redko commented on CXF-5309:
-----------------------------------
Hi Sergey,
I've looked deeply into Hibernate Validator internals and can confirm the fact
that Hibernate Validator does use caching quite extensively for classes
(beans), its members and methods. The lookup for respective method / class
validation metadata is being done once and is stored inside internal cache
(which is Hibernate's internal thread-safe ConcurrentReferenceHashMap). The
bean introspection (over reflection) is also done only once.
With respect to current implementation, we probably should refactor
ValidationProvider to have ValidatorFactory member declared as static so to
create it only once (right now we have two instances, one for In-interceptor
and one for out-interceptor). Please let me know if you need any help from my
side, I would prefer not to submit another patch right now to mess up your work
unless you are OK with that.
Thanks.
Andriy.
> Support Bean Validation API for JAX-RS
> --------------------------------------
>
> Key: CXF-5309
> URL: https://issues.apache.org/jira/browse/CXF-5309
> Project: CXF
> Issue Type: Sub-task
> Components: JAX-RS, JAX-WS Runtime
> Reporter: Sergey Beryozkin
> Attachments: patch-validation-poc.txt
>
>
--
This message was sent by Atlassian JIRA
(v6.1#6144)