You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "lucas theisen (JIRA)" <ji...@apache.org> on 2013/12/26 17:03:50 UTC
[jira] [Created] (DIRAPI-170) Allow StandaloneLdapApiServices to be
configured without system properties
lucas theisen created DIRAPI-170:
------------------------------------
Summary: Allow StandaloneLdapApiServices to be configured without system properties
Key: DIRAPI-170
URL: https://issues.apache.org/jira/browse/DIRAPI-170
Project: Directory Client API
Issue Type: Improvement
Affects Versions: 1.0.0-M20
Reporter: lucas theisen
Priority: Critical
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.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)