NameResolver class
A helper class that allows to extract component name from configuration parameters. The name can be defined in 'id', 'name' parameters or inside a component descriptor.
Example
var config = ConfigParams.fromTuples([
'descriptor', 'myservice:connector:aws:connector1:1.0',
'param1', 'ABC',
'param2', 123
]);
var name = NameResolver.resolve(config); // Result: connector1
Constructors
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Methods
-
resolve(
ConfigParams config, [ String defaultName ]) → String - Resolves a component name from configuration parameters. The name can be stored in 'id', 'name' fields or inside a component descriptor. If name cannot be determined it returns a defaultName. [...]