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

ExecutionContext.getTarget() #156

Open
jGauravGupta opened this issue Sep 15, 2017 · 3 comments
Open

ExecutionContext.getTarget() #156

jGauravGupta opened this issue Sep 15, 2017 · 3 comments
Assignees
Milestone

Comments

@jGauravGupta
Copy link
Contributor

org.eclipse.microprofile.faulttolerance.ExecutionContext interface can also introduce public Object getTarget() method to access the target instance being executed.

@Emily-Jiang
Copy link
Member

sound good.

@Emily-Jiang
Copy link
Member

Can you specify your use case?

@OndroMih
Copy link
Contributor

OndroMih commented May 4, 2018

An example usecase is when a FallbackHandler wants to access the original object instance. A workaround is to use fallbackMethod which is executed on the same object so it's not of high priority. Although I don't like string references in the code and prefer using a fallback handler references as a class instead of fallbackMethod references by its string name.

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

No branches or pull requests

3 participants