protected void setupService ( ) throws Exception { // NOSONAR final DirectoryService service = this . getDirectoryService ( ) ; service . getChangeLog ( ) . setEnabled ( false ) ; this . workDir = getOuterRule ( ) . newFolder ( "dsworkdir" ) ; service . setInstanceLayout ( new InstanceLayout ( this . workDir ) ) ; final CacheService cacheService = new CacheService ( ) ; cacheService . initialize ( service . getInstanceLayout ( ) ) ; service . setCacheService ( cacheService ) ; service . setAccessControlEnabled ( this . acEnabled ) ; service . setAllowAnonymousAccess ( this . anonymousAllowed ) ; this . createPartitions ( ) ; this . importInitialLdif ( ) ; }
Applies the configuration to the service such as AccessControl and AnonymousAccess . Both are enabled as configured . Further the method initializes the cache service . The method does not start the service .