helun/Ektorp — Issue #55: Move DesignDocument instance creation to a separate method in StdDesignDocumentFactory
Author: andriusj
Created: 2011-10-28 02:16:00+00:00
State: open

I am using ektorp with couchdb-lucene, so I need to generate fulltext fields for design documents. I extended DesignDocument to add this field, but currently there's no clean way to pass that instance to that the StdDesignDocumentFactory. So instead of invoking [code]
DesignDocument dd = new DesignDocument()
[/code]

inside generateFrom(metadata) method, add a method to create it, something along the lines:

[code]
public DesignDocument createDesignDocumentInstance() {
return new DesignDocument();
}
[/code]