Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.0.0-M20
-
None
Description
Requiring configuration via system properties makes the client api near unusable in situations where you do not control startup of the application (like in a web container).
Also, DI containers don't work well with the Singleton factory approach as you don't control the order in which your beans are constructed so you would have to be careful to initialize the factory with your hand constructed service in every place that it might be used or the default service may be initialized first forcing your custom initialization to fail.
Finally, it just make sense to allow an LdapNetworkConnection to be configured independent of any other LdapNetworkConnection.