null
for a Service, it means that this service is not present or not compatible with its template declarationnull
value for a Service, it means that this service is present and is compatible with its template declaration// create an OptionalServicesConfigurator with the XML files defining the expected services and types OptionalServicesConfigurator configurator = new OptionalServicesConfigurator(module, <services definition>, <types definition>); // add a service provided by the module to be checked configurator.addService("myService", true); // setup the configurator, this is necessary to detect the compatible services configurator.setup(); // get the service, it will return the service if it is compatible, or null if it is not ServiceInstance<?, ?> service = configurator.getService("myService");
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence