Skip to content
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

Setting interceptDuringConstruction to false can be useful when decorating objects to avoid overriding previously set values by method calls in constructor #1

Merged
merged 5 commits into from Oct 9, 2013

Conversation

gjoseph
Copy link
Contributor

@gjoseph gjoseph commented Sep 20, 2013

Enable setting Cglib Enhancer's interceptDuringConstruction through CglibProxyFactory's constructor. Keeping default value to true since this is Cglib's default.

joehni added a commit that referenced this pull request Oct 9, 2013
A CGlib proxy will intercept calls within the constructor of the proxied instance. This can either prevent proper initialization of the object or the InvocationHandler is not yet prepared for a call at this stage. CGLIB supports a flag to suppress these calls during construction and the flag is exposed with this change as constructor parameter to the CglibProxyFactory.
@joehni joehni merged commit 40044eb into proxytoys:master Oct 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants