Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit fc9dc0a

Browse files
committed
#75 Added ContentSource constructor for XccTemplate
1 parent 829d105 commit fc9dc0a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/marklogic/xcc/template/XccTemplate.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ public XccTemplate(String uri) {
3535
}
3636
}
3737

38+
public XccTemplate(ContentSource contentSource) {
39+
this.contentSource = contentSource;
40+
}
41+
3842
public <T> T execute(XccCallback<T> callback) {
3943
Session session = contentSource.newSession();
4044
try {

0 commit comments

Comments
 (0)