[JAVA-858] Deprecate callbacks Created: 21/Jun/13 Updated: 26/Jul/13 Resolved: 26/Jul/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Uladzimir Mihura | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
If we look at the usage of the following classes, we will see that they are actually used only by corresponding decoders.
At the same time com.mongodb.DBCallbackFactory is used only by DefaultDBCallback, where it is a public static field. So I think that it's better to hide all this from public api in future releases, and for now we can deprecate them.
Also we will be able to deprecate the following methods:
As for com.mongodb.util.JSONCallback, we can just make it package-private and use directly in com.mongodb.util.JSON.JSONParser. |
| Comments |
| Comment by Uladzimir Mihura [ 24/Jun/13 ] |
|
I revised the usage of callbacks. I've digged through github to find some patterns.
-vova |