public interface JsLib extends org.bladerunnerjs.model.AssetContainer, org.bladerunnerjs.model.engine.NamedNode, TestableNode
Modifier and Type | Method and Description |
---|---|
void |
populate(java.lang.String libNamespace,
java.lang.String templateGroup)
The method will create the files and folders existing in the specified template, including their content, within the JsLib.
|
app, asset, assets, canonicaliseRequirePath, isNamespaceEnforced, requirePrefix, scopeAssetContainers
addTemplateTransformations, getTemplateName, populate, root
addObserver, addObserver, containsFile, create, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, getTypeName, incrementChildFileVersions, incrementFileVersion, memoizedScopeFiles, nodeProperties, notifyObservers, parentNode, ready, storageDir, storageFile
assertValidName, getName, isValidName
runTests, testType, testTypes
void populate(java.lang.String libNamespace, java.lang.String templateGroup) throws javax.naming.InvalidNameException, ModelUpdateException, TemplateInstallationException
libNamespace
- the chosen namespace for the librarytemplateGroup
- a String that represents the name by which the templates therein will be referenced when creating new nodes.
The templateGroup may contain templates for various BRJS entities, and the one corresponding to your current entity type
will be retrieved automatically.javax.naming.InvalidNameException
- if the node may not be created due to an invalid name associated to itTemplateInstallationException
- if the template has not been foundModelUpdateException
- for other non-BRJS-specific issues