Interface Search
access this type via: composition.Search (provides, requires or uses)
Utilities to locate components.
Functions
bool isDanaComponent(char path[])
String[] getComponents(char intfPackage[])
String[] getComponentsIn(char intfPackage[], String searchPaths[])
char[] getDefaultComponent(char intfPackage[])
bool isDanaComponent(char path[])
Check if a file is a compiled Dana component.
String[] getComponents(char intfPackage[])
Get the list of components that provide the given interface, using standard search paths.
intfPackage The interface type to search for, complete with its package path in dot format. A semantic flavour wildcard can optionally be appended to intfPackage following a colon, as in Parser:*, to locate all implementations of all semantic flavours, excluding plain implementations of the interface. A specific semantic flavour can be appended such as Parser:multipart to find all implementations of that specific flavour.
String[] getComponentsIn(char intfPackage[], String searchPaths[])
Get the list of components that provide the given interface, using the given directories as search paths.
intfPackage The interface type to search for, complete with its package path in dot format. A semantic flavour wildcard can optionally be appended to intfPackage following a colon, as in Parser:*, to locate all implementations of all semantic flavours, excluding plain implementations of the interface. A specific semantic flavour can be appended such as Parser:multipart to find all implementations of that specific flavour.
char[] getDefaultComponent(char intfPackage[])
Get the default component (as would be used in automated linking) that provides the given interface.
intfPackage The interface type to search for, complete with its package path in dot format. A semantic flavour can optionally be appended to intfPackage following a colon, for example Parser:multipart.