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

[EJBCLIENT-253] Emulate org.jboss.ejb.client.EJBClientContext.registe… #307

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

gaol
Copy link
Contributor

@gaol gaol commented Sep 4, 2017

…rInterceptor(ILorg/jboss/ejb/client/EJBClientInterceptor;)

Jira: https://issues.jboss.org/browse/EJBCLIENT-253

* @return a handle which may be used to later remove this registration
* @throws IllegalArgumentException if the given interceptor is {@code null}, the priority is less than 0, or the
* given interceptor is already registered with a different priority
* @deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An explanation for the deprecation should be made here. Also, as a matter of convention I also add the @Deprecated annotation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also a problem that if an interceptor is added or removed after a proxy is used, the proxy will not see the update because proxy interceptor information is cached by way of the org.jboss.ejb.client.EJBClientContext#proxyInfoValue field. This might be OK (since this is just a compatibility method) but should be documented in any event.


/**
* An interceptor registration handle.
* @deprecated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A deprecation description would be useful here too.

…rInterceptor(ILorg/jboss/ejb/client/EJBClientInterceptor;)
@gaol
Copy link
Contributor Author

gaol commented Sep 8, 2017

@dmlloyd Thank you for the review, I have updated with your request changes, please review it again. Thank you very much ! :)

@dmlloyd dmlloyd merged commit e918dd7 into wildfly:master Sep 29, 2017
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.

2 participants