MCPcopy Create free account
hub / github.com/SAP/ui5-project / _getWriter

Method _getWriter

lib/specifications/ComponentProject.js:203–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201 }
202
203 _getWriter() {
204 if (!this._writers) {
205 // writer is always of style "buildtime"
206 const namespaceWriter = resourceFactory.createAdapter({
207 virBasePath: "/",
208 project: this
209 });
210
211 const generalWriter = resourceFactory.createAdapter({
212 virBasePath: "/",
213 project: this
214 });
215
216 const collection = resourceFactory.createWriterCollection({
217 name: `Writers for project ${this.getName()}`,
218 writerMapping: {
219 [`/resources/${this._namespace}/`]: namespaceWriter,
220 [`/test-resources/${this._namespace}/`]: namespaceWriter,
221 [`/`]: generalWriter
222 }
223 });
224
225 this._writers = {
226 namespaceWriter,
227 generalWriter,
228 collection
229 };
230 }
231 return this._writers;
232 }
233
234 _getReader(excludes) {
235 let reader = this._getSourceReader(excludes);

Callers 2

getWorkspaceMethod · 0.95
_addWriterMethod · 0.95

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected