|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.factory.DSAnnotationProcessor
public class DSAnnotationProcessor
A Helper class used to create a DS from the annotations
Constructor Summary | |
---|---|
DSAnnotationProcessor()
|
Method Summary | |
---|---|
static void |
applyLdifs(org.junit.runner.Description desc,
DirectoryService service)
Apply the LDIF entries to the given service |
static DirectoryService |
getDirectoryService()
Create a DirectoryService from an annotation. |
static DirectoryService |
getDirectoryService(org.junit.runner.Description description)
Create a DirectoryService from a Unit test annotation |
static void |
injectEntries(DirectoryService service,
java.lang.String ldif)
Inject an ldif String into the server. |
static void |
injectLdifFiles(java.lang.Class<?> clazz,
DirectoryService service,
java.lang.String[] ldifFiles)
injects the LDIF entries present in a LDIF file |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DSAnnotationProcessor()
Method Detail |
---|
public static DirectoryService getDirectoryService(org.junit.runner.Description description) throws java.lang.Exception
description
- The annotations containing the info from which we will create the DS
java.lang.Exception
public static DirectoryService getDirectoryService() throws java.lang.Exception
java.lang.Exception
public static void injectLdifFiles(java.lang.Class<?> clazz, DirectoryService service, java.lang.String[] ldifFiles) throws java.lang.Exception
service
- the DirectoryServiceldifFiles
- the array of LDIF file names (only )
java.lang.Exception
public static void injectEntries(DirectoryService service, java.lang.String ldif) throws java.lang.Exception
service
- the directory service to useldif
- the ldif containing entries to add to the server.
javax.naming.NamingException
- if there is a problem adding the entries from the LDIF
java.lang.Exception
public static void applyLdifs(org.junit.runner.Description desc, DirectoryService service) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |