IServiceDependencyList
This is a helper class used by the service registry to collect dependencies from service starters.
Add a dependency
To add a dependency on a singleton object, use the corresponding class.
void add(@NotNull Class> aService);
For dependencies that are not a singleton, you must include a filter to distinguish the individual instances of the
class. Filters are a list of properties separated by commas, such as "key1=val1,key2=val2"
.
void add(@NotNull Class> aService, @NotNull String aProperties);
An example is the specification of a namespace. Namespaces are not singletons. They can be distinguished by namespace ID:
aDependencyList.add(INamespace.class, "nid=TCP");