public final class ServerAnnotationProcessor
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
ServerAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
static ReplicationConsumer |
createConsumer()
creates an LdapServer and starts before returning the instance, infering
the configuration from the Stack trace
|
private static ReplicationConsumer |
createConsumer(CreateConsumer createConsumer)
Create a replication consumer
|
private static KdcServer |
createKdcServer(CreateKdcServer createKdcServer,
DirectoryService directoryService) |
private static LdapServer |
createLdapServer(CreateLdapServer createLdapServer,
DirectoryService directoryService)
creates an LdapServer and starts before returning the instance
|
static LdapServer |
createLdapServer(org.junit.runner.Description description,
DirectoryService directoryService)
Create a new instance of LdapServer
|
private static java.util.List<Transport> |
createTransports(CreateTransport transportBuilder) |
private static void |
createTransports(LdapServer ldapServer,
CreateTransport[] transportBuilders) |
private static java.lang.annotation.Annotation |
getAnnotation(java.lang.Class annotationClass) |
private static int |
getFreePort() |
static KdcServer |
getKdcServer(org.junit.runner.Description description,
DirectoryService directoryService,
int startPort) |
static KdcServer |
getKdcServer(DirectoryService directoryService,
int startPort) |
static LdapServer |
getLdapServer(DirectoryService directoryService)
Returns an LdapServer instance and starts it before returning the instance, infering
the configuration from the Stack trace
|
static LdapServer |
instantiateLdapServer(CreateLdapServer createLdapServer,
DirectoryService directoryService)
Just gives an instance of
LdapServer without starting it. |
private static void createTransports(LdapServer ldapServer, CreateTransport[] transportBuilders)
public static LdapServer instantiateLdapServer(CreateLdapServer createLdapServer, DirectoryService directoryService)
LdapServer without starting it.
For getting a running LdapServer instance see createLdapServer(CreateLdapServer, DirectoryService)public static LdapServer getLdapServer(DirectoryService directoryService) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionprivate static ReplicationConsumer createConsumer(CreateConsumer createConsumer)
public static ReplicationConsumer createConsumer() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionprivate static LdapServer createLdapServer(CreateLdapServer createLdapServer, DirectoryService directoryService)
createLdapServer - the annotation containing the custom configurationdirectoryService - the directory servicepublic static LdapServer createLdapServer(org.junit.runner.Description description, DirectoryService directoryService) throws java.lang.Exception
description - A description for the created LdapServerdirectoryService - The associated DirectoryServicestartPort - The port used by the serverjava.lang.Exception - If the server cannot be startedprivate static java.lang.annotation.Annotation getAnnotation(java.lang.Class annotationClass)
throws java.lang.Exception
java.lang.Exceptionpublic static KdcServer getKdcServer(DirectoryService directoryService, int startPort) throws java.lang.Exception
java.lang.Exceptionprivate static KdcServer createKdcServer(CreateKdcServer createKdcServer, DirectoryService directoryService)
private static java.util.List<Transport> createTransports(CreateTransport transportBuilder)
private static int getFreePort()
throws java.io.IOException
java.io.IOExceptionpublic static KdcServer getKdcServer(org.junit.runner.Description description, DirectoryService directoryService, int startPort) throws java.lang.Exception
java.lang.Exception