1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector;
18
19 import edu.vt.middleware.ldap.Ldap;
20 import edu.vt.middleware.ldap.pool.LdapFactory;
21 import edu.vt.middleware.ldap.pool.LdapPoolConfig;
22
23
24
25
26 public class LdapPoolEmptyStrategy implements LdapPoolStrategy {
27
28
29 private LdapFactory<Ldap> ldapFactory;
30
31
32
33
34 public LdapPoolEmptyStrategy() {}
35
36
37 public void setLdapPoolConfig(LdapPoolConfig config) {}
38
39
40 public void setLdapFactory(LdapFactory<Ldap> factory) {
41 ldapFactory = factory;
42 }
43
44
45 public void setBlockWhenEmpty(boolean block) {}
46
47
48 public void initialize() {}
49
50
51 public Ldap checkOut() throws Exception {
52 return ldapFactory.create();
53 }
54
55
56 public void checkIn(Ldap l) throws Exception {
57 ldapFactory.destroy(l);
58 }
59 }