public class App
extends org.bladerunnerjs.model.AbstractBRJSNode
implements org.bladerunnerjs.model.engine.NamedNode
| Modifier and Type | Class and Description |
|---|---|
class |
App.Messages |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_CONTAINER_NAME |
| Constructor and Description |
|---|
App(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTemplateTransformations(java.util.Map<java.lang.String,java.lang.String> transformations)
Template transformation are used to replace aliases for namings that are automatically replaced when creating an node.
|
AppConf |
appConf() |
org.bladerunnerjs.model.AppJsLib |
appJsLib(java.lang.String jsLibName) |
java.util.List<org.bladerunnerjs.model.AppJsLib> |
appJsLibs() |
Aspect |
aspect(java.lang.String aspectName)
Get a named aspects.
|
java.util.List<Aspect> |
aspects()
Get the list of aspects for the App
|
void |
assertValidName() |
Bladeset |
bladeset(java.lang.String bladesetName)
Get a named bladeset.
|
java.util.List<Bladeset> |
bladesets()
Get the list of bladesets for the App
|
void |
build(MemoizedFile targetDir) |
void |
buildWar(MemoizedFile targetFile) |
Aspect |
defaultAspect()
Get the default aspect for the app.
|
Bladeset |
defaultBladeset()
Get the default bladeset for the app.
|
void |
deploy() |
java.util.List<org.bladerunnerjs.model.AssetContainer> |
getAllAssetContainers()
Returns *all* of the asset containers in the model.
|
java.lang.String |
getName() |
java.util.List<org.bladerunnerjs.model.AssetContainer> |
getNonAspectAssetContainers() |
java.lang.String |
getRequirePrefix() |
boolean |
isMultiLocaleApp() |
boolean |
isValidName() |
JsLib |
jsLib(java.lang.String jsLibName) |
java.util.List<JsLib> |
jsLibs() |
MemoizedFile |
libsDir() |
MemoizedFile[] |
memoizedScopeFiles() |
BRJS |
parent() |
void |
populate(java.lang.String templateGroup)
Any BRJSNode may be populated according to a pre-existing template.
|
void |
populate(java.lang.String requirePrefix,
java.lang.String templateGroup) |
org.bladerunnerjs.utility.AppRequestHandler |
requestHandler() |
addObserver, addObserver, containsFile, create, createDefaultNode, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, getTypeName, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, rootStorageDir, setNodeDir, storageDir, storageFile, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddObserver, addObserver, containsFile, create, delete, dir, dirExists, discoverAllChildren, exists, file, getObservers, getTypeName, incrementChildFileVersions, incrementFileVersion, nodeProperties, notifyObservers, parentNode, ready, root, storageDir, storageFilepublic static final java.lang.String DEFAULT_CONTAINER_NAME
public App(org.bladerunnerjs.model.engine.RootNode rootNode,
org.bladerunnerjs.model.engine.Node parent,
MemoizedFile dir,
java.lang.String name)
public MemoizedFile[] memoizedScopeFiles()
memoizedScopeFiles in interface org.bladerunnerjs.model.engine.NodememoizedScopeFiles in class org.bladerunnerjs.model.engine.AbstractNodepublic java.util.List<org.bladerunnerjs.model.AssetContainer> getAllAssetContainers()
AssetContainerspublic java.util.List<org.bladerunnerjs.model.AssetContainer> getNonAspectAssetContainers()
public void addTemplateTransformations(java.util.Map<java.lang.String,java.lang.String> transformations)
throws ModelUpdateException
BRJSNodeaddTemplateTransformations in interface BRJSNodetransformations - a Map of Strings to Strings where the key is the token and the value is the String it will be replaced with
* @see Custom TemplatesModelUpdateException - for any exceptions thrown while calculating node template transformationspublic java.lang.String getName()
getName in interface org.bladerunnerjs.model.engine.NamedNodepublic boolean isValidName()
isValidName in interface org.bladerunnerjs.model.engine.NamedNodepublic void assertValidName()
throws javax.naming.InvalidNameException
assertValidName in interface org.bladerunnerjs.model.engine.NamedNodejavax.naming.InvalidNameExceptionpublic BRJS parent()
public boolean isMultiLocaleApp()
public AppConf appConf() throws ConfigException
ConfigExceptionpublic java.util.List<Bladeset> bladesets()
public Bladeset bladeset(java.lang.String bladesetName)
bladesetName - The name of the bladesetpublic Bladeset defaultBladeset()
bladeset(java.lang.String)public java.util.List<Aspect> aspects()
public Aspect aspect(java.lang.String aspectName)
aspectName - The name of the Aspectpublic Aspect defaultAspect()
defaultAspect()public java.util.List<JsLib> jsLibs()
public JsLib jsLib(java.lang.String jsLibName)
public java.util.List<org.bladerunnerjs.model.AppJsLib> appJsLibs()
public org.bladerunnerjs.model.AppJsLib appJsLib(java.lang.String jsLibName)
public void populate(java.lang.String templateGroup)
throws javax.naming.InvalidNameException,
ModelUpdateException,
TemplateInstallationException
BRJSNodepopulate in interface BRJSNodepopulate in class org.bladerunnerjs.model.AbstractBRJSNodetemplateGroup - 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 BRJSNode type
will be retrieved automatically.javax.naming.InvalidNameException - if the node may not be created due to an invalid name associated to itModelUpdateException - for other non-BRJS-specific issuesTemplateInstallationException - if the template has not been foundpublic void populate(java.lang.String requirePrefix,
java.lang.String templateGroup)
throws javax.naming.InvalidNameException,
ModelUpdateException,
TemplateInstallationException
javax.naming.InvalidNameExceptionModelUpdateExceptionTemplateInstallationExceptionpublic void deploy()
throws TemplateInstallationException
TemplateInstallationExceptionpublic java.lang.String getRequirePrefix()
public MemoizedFile libsDir()
public org.bladerunnerjs.utility.AppRequestHandler requestHandler()
public void build(MemoizedFile targetDir) throws ModelOperationException
ModelOperationExceptionpublic void buildWar(MemoizedFile targetFile) throws ModelOperationException
ModelOperationException