public class DirContextPooledObjectFactory extends org.apache.commons.pool2.BasePooledObjectFactory<DirContext>
Modifier and Type | Field and Description |
---|---|
protected String |
admin |
static org.apache.commons.logging.Log |
log |
protected String |
password |
protected String |
server |
protected boolean |
useTLS |
Constructor and Description |
---|
DirContextPooledObjectFactory() |
Modifier and Type | Method and Description |
---|---|
DirContext |
create() |
void |
destroyObject(org.apache.commons.pool2.PooledObject<DirContext> p) |
boolean |
validateObject(org.apache.commons.pool2.PooledObject<DirContext> p) |
org.apache.commons.pool2.PooledObject<DirContext> |
wrap(DirContext dirContext) |
public static org.apache.commons.logging.Log log
protected String server
protected String admin
protected String password
protected boolean useTLS
public DirContext create() throws Exception
create
in class org.apache.commons.pool2.BasePooledObjectFactory<DirContext>
Exception
public org.apache.commons.pool2.PooledObject<DirContext> wrap(DirContext dirContext)
wrap
in class org.apache.commons.pool2.BasePooledObjectFactory<DirContext>
public boolean validateObject(org.apache.commons.pool2.PooledObject<DirContext> p)
validateObject
in interface org.apache.commons.pool2.PooledObjectFactory<DirContext>
validateObject
in class org.apache.commons.pool2.BasePooledObjectFactory<DirContext>
public void destroyObject(org.apache.commons.pool2.PooledObject<DirContext> p) throws Exception
destroyObject
in interface org.apache.commons.pool2.PooledObjectFactory<DirContext>
destroyObject
in class org.apache.commons.pool2.BasePooledObjectFactory<DirContext>
Exception
Copyright © 2020. All rights reserved.