public class LdapConnectionManagerService extends Object implements org.jboss.msc.service.Service<LdapConnectionManagerService>, ConnectionManager
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
BASE_SERVICE_NAME |
| Constructor and Description |
|---|
LdapConnectionManagerService(org.jboss.dmr.ModelNode resolvedConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getConnection()
Obtain a connection based purely on the configuration.
|
Object |
getConnection(String principal,
String credential)
Obtain a connection based on the configuration but override the
principal and credential.
|
LdapConnectionManagerService |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public static final org.jboss.msc.service.ServiceName BASE_SERVICE_NAME
public LdapConnectionManagerService(org.jboss.dmr.ModelNode resolvedConfiguration)
public void start(org.jboss.msc.service.StartContext context)
throws org.jboss.msc.service.StartException
start in interface org.jboss.msc.service.Service<LdapConnectionManagerService>org.jboss.msc.service.StartExceptionpublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.service.Service<LdapConnectionManagerService>public LdapConnectionManagerService getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<LdapConnectionManagerService>IllegalStateExceptionIllegalArgumentExceptionpublic Object getConnection() throws Exception
ConnectionManagergetConnection in interface ConnectionManagerExceptionpublic Object getConnection(String principal, String credential) throws Exception
ConnectionManagergetConnection in interface ConnectionManagerprincipal - - The principal to use when connecting.credential - - The credential to use when connecting.ExceptionCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.