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
making Jedis compatible with CDI #747
making Jedis compatible with CDI #747
Conversation
@HeartSaVioR and @marcosnils can you guys take a look, please? |
@nykolaslima How about creating another classes for mocking/proxying purposes? |
Hello Jungtaek. I think that extends classes to make then compatible with CDI it's The deprecated annotation is just to tell users that this constructor If we extend classes, users will need to use different classes only because On Saturday, September 20, 2014, Jungtaek Lim notifications@github.com
|
@nykolaslima I think Jedis / JedisPool with default constructor is not really usable for normal situation, so it should not exposed whether it has @deprecated or not. |
Thanks for reply. Actually this is not usable for normal situation, it's just usable for CDI, The number of people using CDI is increasing every day and do not Again, thank you for your replies. I undestand your point but I trully On Saturday, September 20, 2014, Jungtaek Lim notifications@github.com
|
@nykolaslima Here is working example about CDI and "current" Jedis. Seems like Jedis can play with CDI, except directly mocking/proxying Jedis & JedisPool. |
Hello Jungtaek, Did you saw the example project that I created? Try to run it and you will In the example used in this blog post, the Jedis producer does not declare If you don't declare the producer as request scoped, it will work. But if On Sunday, September 21, 2014, Jungtaek Lim notifications@github.com
|
@HeartSaVioR can you tell me if you guys gonna merge it? Thank you. |
@nykolaslima We recently release 2.6.0 with hard working to review and merge (including by hand). |
@marcosnils @xetorthio Can you handle this PR? |
@HeartSaVioR. I'll check it out. I've been without Internet the past week I'll let u know my thoughts soon
|
@nykolaslima @marcosnils @xetorthio |
Looks good to me. I'll change it and commit. On Saturday, September 27, 2014, Jungtaek Lim notifications@github.com
|
@nykolaslima Default port is specified to Connection class. |
@HeartSaVioR can you please take a look now? |
@nykolaslima It seems that Connection class can handle default value, and other classes can delegate it to Connection class. |
I'm 👍 on this. |
So do you want me to make the changes that you suggested or let's merge 2014-09-27 15:33 GMT-03:00 Jungtaek Lim notifications@github.com:
|
@nykolaslima First, it needs to reviewed by one more collaborator to merge. |
Ok. For me there is no problem in make these changes. But I think that's ok Let's wait for the review of the other guys. Thank you for helping me until Regards, On Saturday, September 27, 2014, Jungtaek Lim notifications@github.com
|
@nykolaslima Thanks for your patience! |
@xetorthio @marcosnils Could you take a look and comment? |
Hey guys, do I need to make anything else so we can merge it? |
@nykolaslima It seems that other committers are very busy to take a look. I'll take care of it alone. Btw, it'll be released to 2.7.0 (minor release), means it doesn't scheduled to release. |
@HeartSaVioR I did the changes that you suggested. Can we merge now? |
@nykolaslima I'm sorry, but you're misunderstanding my comments. We let Connection class takes care of default port alone. We can apply this approach to default host. But I can take care of it myself. I'll merge your PR into master, and modify it. |
I'm sorry Jungtaek. Thank you for making this changes. []s On Wednesday, October 8, 2014, Jungtaek Lim notifications@github.com
|
@HeartSaVioR. Thanks for merging. As you' ve stated I' ve been quite busy
|
I've merged to master, and 2.7 branch. |
@marcosnils No problem! Feel free to take a break or do your own job first. :) |
Thank you @HeartSaVioR |
When using CDI and trying to produce a
Jedis
andJedisPool
we got an exception because CDI needs default constructor to make the object proxy.Here is some project showing the problem: https://github.com/nykolaslima/cdiProblem
This change creates default constructor for
Jedis
andJedisPool
classes. This constructor should only be used by CDI, thats why I added a@Deprecated
.