Version1 /
InstantiateAn accessor may instantiate any number of contained accessors in the body of its
For example: exports.setup = function() { this.instantiate('test', 'test/TestAccessor'); } The instantiate() function takes two arguments, both strings. The instanceName should be unique for each instance of a contained accessor. The className should be a fully qualified accessor class name, e.g. 'net/REST'. The swarmlet host will search for this accessor in its accessor library (current hosts use the TerraSwarm accessor library. The Back to Accessor Specification |