Can't make it work with Guava's Optional type
Need a way to register a factory for Optional types, or more generally, a way to register a factory for any given type would be better than nothing. This is without having to modify the original class too.
I'm looking at implementing a factory registration system to externally register custom factories for certain types (which will solve optional), instead of having to annotate classes (useful for code that's not your own). Let me know if you've got any tips or existing near solutions.
Have implemented it myself, among other things; https://github.com/mtedone/podam/pull/24
This is waiting for pull requests #39, #40, #41, #42 to be processed before updating work on this as it depends on those branches currently. At my company we're continuing on with my older fork that has the guava support working.
Tests for the reported problem was pushed to new branch guava in order to avoid having Guava as dependency for PODAM
https://github.com/mtedone/podam/commit/a90a32e9630b8f37bd88492bf76c580a9fe3909b
Closing the issue as tests succeed.
Daniil, it's a good idea to support additional types in PODAM without direct dependencies. We should be looking at loading external types at runtime through the Classloader. Podium users' responsibility will be to make sure that these libraries are available at runtime. For tests, we could include Guava with scope 'test' so that it won't end up in the production code. Once this work is done, we can remove the Guava branch.
This tests is complimentary. There is no fix patch related to this test. So if there are two possibilities: remove the branch or merge it to master. guava was added in test scope: https://github.com/mtedone/podam/commit/a90a32e9630b8f37bd88492bf76c580a9fe3909b