Fluent builder for registering a JS object as an app's implementation of a named platform extension point, reached from controllerMappings.newImplementationBuilder(interfaceName). Extension points are the current way for an app to plug into platform hooks, such as index query action types. Set the implementation object, a JS object whose properties supply the functions the extension point calls, and call build to register it under the extension point's name.
Group: Builders
Properties
| Property | Returns | Description |
|---|---|---|
| implementationObject | Map<String,Object> | The JS implementation object set on this builder, whose properties supply the functions the extension point calls. |
| name | String | Name of the extension point this builder is registering an implementation for. |
Methods
getName()
Returns: String
Name of the extension point this builder is registering an implementation for.
getImplementationObject()
Returns: Map<String,Object>
The JS implementation object set on this builder, whose properties supply the functions the extension point calls.
setImplementationObject(Object implObject)
Returns: void
Sets the JS implementation object for this extension point. Equivalent to calling implementationObject. Non-map values are ignored with a warning, for backwards compatibility with older app scripts.
| Parameter | Description |
|---|---|
implObject | the implementation object, expected to be a map of property name to value |
implementationObject(Object o)
Returns: JsImplementationBuilder
Sets the JS implementation object for this extension point. Non-map values are ignored with a warning, for backwards compatibility with older app scripts that could pass undefined.
| Parameter | Description |
|---|---|
o | the implementation object, expected to be a map of property name to value |
build()
Returns: void
Registers the implementation object under this builder's extension point name. Does nothing, other than logging a warning, if no implementation object has been set.