Package com.yahoo.application.container
Class DocumentAccesses
- java.lang.Object
-
- com.yahoo.application.container.DocumentAccesses
-
public class DocumentAccesses extends java.lang.Object
Utility for working with aLocalDocumentAccess
for unit testing components which require aDocumentAccess
.- Author:
- jonmv
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.yahoo.documentapi.local.LocalDocumentAccess
createFromSchemas(java.lang.String schemaDirectory)
Reads the.sd
files in the given directory, and returns aLocalDocumentAccess
with these document types.
-
-
-
Method Detail
-
createFromSchemas
public static com.yahoo.documentapi.local.LocalDocumentAccess createFromSchemas(java.lang.String schemaDirectory)
Reads the.sd
files in the given directory, and returns aLocalDocumentAccess
with these document types.
Example usage:LocalDocumentAccess access = DocumentAccesses.ofSchemas("src/main/application/schemas");
-
-