Module Components
Container for registered ComponentClasses
Functions
has (name) | Returns true if the containter has the ComponentClass with the specified name |
reject (name) | Prefix a component's name with the currently set Reject Prefix |
try (name) | Returns true and the ComponentClass if one was registered with the specified name or false and an error otherwise |
get (name) | Returns the ComponentClass with the specified name |
Functions
- has (name)
-
Returns true if the containter has the ComponentClass with the specified name
Parameters:
- name string Name of the ComponentClass to check
Returns:
-
boolean
- reject (name)
-
Prefix a component's name with the currently set Reject Prefix
Parameters:
- name string Name of the ComponentClass to reject
Returns:
- try (name)
-
Returns true and the ComponentClass if one was registered with the specified name
or false and an error otherwise
Parameters:
- name string Name of the ComponentClass to check
Returns:
- boolean
- Component or error string
- true if acceptRejected was true and the name had the Reject Prefix, false otherwise.
- get (name)
-
Returns the ComponentClass with the specified name
Parameters:
- name string Name of the ComponentClass to get
Returns: