public class StdDesignDocumentFactory extends Object implements DesignDocumentFactory
Modifier and Type | Field and Description |
---|---|
SimpleViewGenerator |
viewGenerator |
Constructor and Description |
---|
StdDesignDocumentFactory() |
Modifier and Type | Method and Description |
---|---|
DesignDocument |
generateFrom(Object metaDataSource)
Generates a design document with views, lists, shows and filters generated and loaded
according to the annotations found in the metaDataSource object.
|
DesignDocument |
getFromDatabase(CouchDbConnector db,
String designDocumentId)
Retrieves the DesignDocument instance from the database
|
DesignDocument |
newDesignDocumentInstance()
Create a new empty instance of a DesignDocument
|
public SimpleViewGenerator viewGenerator
public DesignDocument generateFrom(Object metaDataSource)
DesignDocumentFactory
generateFrom
in interface DesignDocumentFactory
public DesignDocument getFromDatabase(CouchDbConnector db, String designDocumentId)
DesignDocumentFactory
getFromDatabase
in interface DesignDocumentFactory
db
- The couch database connectordesignDocumentId
- The id of the documentpublic DesignDocument newDesignDocumentInstance()
DesignDocumentFactory
newDesignDocumentInstance
in interface DesignDocumentFactory
Copyright © 2013. All Rights Reserved.