Binder source

A blueprint binder is a collection of of blueprints for a specific access type. It also includes the connection information.

Specializes Montage

Properties

binderInstanceModuleId source

This is used for references only so that we can reload referenced binders.

identifier :Property source

The identifier is the name of the binder and is used to make the serialization of binders more readable.

Default Value:
  • {string} this.name

isDefault source

Identify the default binder. Do not set.

ObjectProperty :Property source

Return the blueprint object property for this binder</br> This will return the default if none is declared.

Methods

addBlueprint(blueprint) source

Parameters:
Name Type Description
blueprint Array

TODO

Returns:

blueprint

addBlueprintNamed(name, moduleID) → {Blueprint} source

Parameters:
Name Type Description
name string

TODO

moduleID string

TODO

Returns: Blueprint

The new blueprint

blueprintForPrototype(prototypeName, moduleId) source

Return the blueprint associated with this prototype.

Parameters:
Name Type Description
prototypeName string

TODO

moduleId ID

TODO

Returns:

blueprint

blueprints() source

Returns the list of blueprints in this binder.

Default Value:
  • {Array}

callDelegateMethod(name) source

This method calls the method named with the identifier prefix if it exists. Example: If the name parameter is "shouldDoSomething" and the caller's identifier is "bob", then this method will try and call "bobShouldDoSomething"

Parameters:
Name Type Description
name string
Inherited From:

equals(anObject) → {boolean} source

Returns true if two objects are equal, otherwise returns false.

Parameters:
Name Type Description
anObject Object

The object to compare for equality.

Inherited From:
Returns: boolean

Returns true if the calling object and anObject are identical and their uuid properties are also equal. Otherwise, returns false.

initWithNameAndRequire(name) source

Parameters:
Name Type Description
name string

TODO

Returns:

itself

name() → {string} source

Name of the object. The name is used to define the property on the object.

Returns: string

this._name

removeBlueprint(blueprint) source

Parameters:
Name Type Description
blueprint Array

TODO

Returns:

blueprint

require() → {string} source

Require for the binder. All blueprints added must be in this require's package, or in a direct dependency.

Returns: string

this._require

Generated from a4679af

comments powered by Disqus

More help?

Can't find what you are looking for? Get in touch, we're more than happy in helping answer your questions.