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

Stop depending on reflection in InternalTask and related #16

Closed
joeha480 opened this issue Jan 31, 2018 · 0 comments
Closed

Stop depending on reflection in InternalTask and related #16

joeha480 opened this issue Jan 31, 2018 · 0 comments

Comments

@joeha480
Copy link
Contributor

joeha480 commented Jan 31, 2018

Reflection is used in combination with InternalTask to determine the type of task. This could be solved by including all relevant operations in the same interface or by requesting the interface that is needed, e.g. asReadWriteTask(), as ReadOnlyTask() etc. The task type must then be available (getTaskType()), so that an implementation can throw UnsupportedOperationException if the task isn't of the requested type.

See also #15

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

1 participant