public class ServerAnnotationProcessor extends Object
| Constructor and Description |
|---|
ServerAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.directory.server.ldap.replication.consumer.ReplicationConsumer |
createConsumer()
creates an LdapServer and starts before returning the instance, infering
the configuration from the Stack trace
|
static org.apache.directory.server.ldap.LdapServer |
createLdapServer(org.junit.runner.Description description,
org.apache.directory.server.core.api.DirectoryService directoryService)
Create a new instance of LdapServer
|
static org.apache.directory.server.protocol.shared.transport.Transport |
createTransport(CreateTransport transportBuilder,
int startPort) |
static org.apache.directory.server.kerberos.kdc.KdcServer |
getKdcServer(org.junit.runner.Description description,
org.apache.directory.server.core.api.DirectoryService directoryService,
int startPort) |
static org.apache.directory.server.kerberos.kdc.KdcServer |
getKdcServer(org.apache.directory.server.core.api.DirectoryService directoryService,
int startPort) |
static org.apache.directory.server.ldap.LdapServer |
getLdapServer(org.apache.directory.server.core.api.DirectoryService directoryService)
Returns an LdapServer instance and starts it before returning the instance, infering
the configuration from the Stack trace
|
static org.apache.directory.server.ldap.LdapServer |
instantiateLdapServer(CreateLdapServer createLdapServer,
org.apache.directory.server.core.api.DirectoryService directoryService)
Just gives an instance of
LdapServer without starting it. |
public static org.apache.directory.server.ldap.LdapServer instantiateLdapServer(CreateLdapServer createLdapServer, org.apache.directory.server.core.api.DirectoryService directoryService)
LdapServer without starting it.
For getting a running LdapServer instance see createLdapServer(CreateLdapServer, DirectoryService)public static org.apache.directory.server.ldap.LdapServer getLdapServer(org.apache.directory.server.core.api.DirectoryService directoryService)
throws ClassNotFoundException
ClassNotFoundExceptionpublic static org.apache.directory.server.ldap.replication.consumer.ReplicationConsumer createConsumer()
throws ClassNotFoundException
ClassNotFoundExceptionpublic static org.apache.directory.server.ldap.LdapServer createLdapServer(org.junit.runner.Description description,
org.apache.directory.server.core.api.DirectoryService directoryService)
throws Exception
description - A description for the created LdapServerdirectoryService - The associated DirectoryServicestartPort - The port used by the serverException - If the server cannot be startedpublic static org.apache.directory.server.kerberos.kdc.KdcServer getKdcServer(org.apache.directory.server.core.api.DirectoryService directoryService,
int startPort)
throws Exception
Exceptionpublic static org.apache.directory.server.protocol.shared.transport.Transport createTransport(CreateTransport transportBuilder, int startPort)
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.