[ 
https://issues.apache.org/jira/browse/DIRAPI-170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kiran Ayyagari resolved DIRAPI-170.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.0-M21
         Assignee: Kiran Ayyagari

Thanks Lucas for the patch, it was committed here http://svn.apache.org/r1555852

> 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
>            Assignee: Kiran Ayyagari
>            Priority: Critical
>             Fix For: 1.0.0-M21
>
>         Attachments: DIRAPI-170.patch
>
>
> 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)

Reply via email to