getRequired<T> method
Gets all required dependencies by their name. At least one dependency must be present. If no dependencies was found it throws a ReferenceException
name
the dependency name to locate. Returns a list with found dependencies.
Throws a ReferenceException if no dependencies were found.
Implementation
List<T> getRequired<T>(String name) {
var locator = locate(name);
if (locator == null) throw ReferenceException(null, name);
return _references!.getRequired<T>(locator);
}