RSAddonConfig Class
Item Index
Methods
_readYcbAppConfig
()
Object
private
Initializes the special multi-file YCB library for all the application
files. By default, we try to load application.json, then mix any other
relative config file specified in the master section under the
applicationConfigFiles array, which is optional.
Returns:
_readYcbDimensions
()
Array
private
Read the application's dimensions.json file for YCB processing. If not available, fall back to the framework's default dimensions.json.
Returns:
createMultipartYCB
-
paths
Creates a YCB configuration bundle using contents from multiple files.
The appropriate dimensions.json file will be mixed in, and doesn't need
to be part of the list of files. This method is tolerant to errors, and
will fallback to {} if a file does not exists or fails to load.
Parameters:
-
pathsArraylist of files to load
Returns:
findResourceVersionByConvention
-
source -
mojitType
Using AOP, this is called after the ResourceStore's version.
Parameters:
-
sourceObjectmetadata about where the resource is located
-
mojitTypeStringname of mojit to which the resource likely belongs
Returns:
getAppConfigYCB
()
YCB
Returns the YCB library object for the application config.
Returns:
getDimensions
()
Object
Returns the YCB dimensions for the application.
Returns:
initializer
-
config
This methods is part of Y.Plugin.Base. See documentation for that for details.
Parameters:
-
configObjectConfiguration object as per Y.Plugin.Base
Returns:
parseResourceVersion
-
source -
type -
subtype -
mojitType
Using AOP, this is called before the ResourceStore's version.
Parameters:
-
sourceObjectmetadata about where the resource is located
-
typeStringtype of the resource
-
subtypeStringsubtype of the resource
-
mojitTypeStringname of mojit to which the resource likely belongs
Returns:
readConfigJSON
-
fullPath
Reads a JSON file. In mojito, this should generally only be used for package.json files, and all other mojito config files should instead be read using readConfigSimple() or readConfigYCB().
Parameters:
-
fullPathStringpath to JSON file
Returns:
readConfigSimple
-
fullPath
Reads and parses a JSON or YAML structured file.
Parameters:
-
fullPathStringpath to JSON or YAML file
Returns:
readConfigYCB
-
ctx -
fullPath
Reads a configuration file that is in YCB format.
Parameters:
-
ctxObjectruntime context
-
fullPathStringpath to the YCB file
