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

[WFCORE-2096] Decouple OperationContext-specific ServiceTarget/Builder from the con… #2008

Merged
merged 1 commit into from Dec 8, 2016

Conversation

bstansberry
Copy link
Contributor

@bstansberry bstansberry commented Dec 6, 2016

…text when op execution is done

https://issues.jboss.org/browse/WFCORE-2096

Goal is to prevent refs to the ServiceTarget provided by OperationContext holding refs to all the state associated with the op after the op is done, since it is valid for users of the OC to hold a ref to the target after the op is done.

Makes the ServiceTarget and ServiceBuilder impl classes created by OperationContextImpl static so they hold no OperationContext.this ref. Provides a temporary ref to the OCI logic to their constructors, and clears that ref when op execution is done, turning the objects after that point into simple wrappers around the normal MSC classes.

…r from the context when op execution is done
@bstansberry bstansberry changed the title Decouple OperationContext-specific ServiceTarget/Builder from the con… [WFCORE-2096] Decouple OperationContext-specific ServiceTarget/Builder from the con… Dec 8, 2016
@bstansberry bstansberry removed the hold Do not merge this PR label Dec 8, 2016
@bstansberry bstansberry merged commit 977c02b into wildfly:master Dec 8, 2016
@bstansberry bstansberry deleted the static-svc-target branch December 8, 2016 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants