[
https://issues.apache.org/jira/browse/NEETHI-14?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13230014#comment-13230014
]
Alessio Soldano commented on NEETHI-14:
---------------------------------------
To add more explanation, this solves a performance issue whenever using the
constructor accepting a factory:
public PolicyBuilder(AssertionBuilderFactory factory) {
this.factory = factory;
}
(the AssertionBuilderFactoryImpl creation involves creating an instance of
ConverterRegistry too, which in turn uses reflection for registering converters)
Apache CXF, for instance, uses the constructor above.
> AssertionBuilderFactory is created twice in PolicyBuilder initialization
> ------------------------------------------------------------------------
>
> Key: NEETHI-14
> URL: https://issues.apache.org/jira/browse/NEETHI-14
> Project: Neethi
> Issue Type: Improvement
> Affects Versions: 3.0.1
> Reporter: jimma
> Fix For: 3.0.2
>
> Attachments: NEETHI-14.patch
>
>
> Simply change the field factory to null can avoid this.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]