From RTSC-Pedia
revision tip
LANDSCAPE orientation[printable version] [offline version] | offline version generated on 04-Aug-2010 21:08 UTC |
XDCscript - Module-Object.create
Create a new Instance object managed by this unit
Contents |
Synopsis
| var «inst» = «Mod».create(«params»); |
where «Mod» is a module object and «params» are creation parameters specific to this module.
Description
A special method that returns a new Instance object, «inst», managed by the module «Mod».
Example
| var Defaults = xdc.useModule("xdc.runtime.Defaults"); var LoggerBuf = xdc.useModule("xdc.runtime.LoggerBuf"); /* create and initialize a LoggerBuf Params object */ var params = new LoggerBuf.Params; params.numEntries = 128; /* create new LoggerBuf instance object and assign it as the default logger */ Defaults.common$.logger = Logger.create(params); |
See also
XDCscript - Module-Object.Params | Module's instance creation parameters |
XDCscript - Instance-Body.instance$meta$init | Initialize a meta-only module's instance |
XDCscript - Instance-Body.instance$static$init | Statically initialize a target module's instance object |
Creating Configurable Content | How to leverage the configuration process |
[printable version] [offline version] | offline version generated on 04-Aug-2010 21:08 UTC |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved