Search in sources :

Example 1 with SystemInstanceLoadingService

use of org.osate.ge.internal.services.SystemInstanceLoadingService in project osate2 by osate.

the class AadlReferenceUtil method getSystemInstanceKey.

public static String getSystemInstanceKey(final InstanceObject io) {
    final Bundle bundle = FrameworkUtil.getBundle(AadlReferenceUtil.class);
    final SystemInstanceLoadingService sil = Objects.requireNonNull(EclipseContextFactory.getServiceContext(bundle.getBundleContext()).get(SystemInstanceLoadingService.class), "unable to get system instance loading service");
    return sil.getKey(io.getSystemInstance());
}
Also used : SystemInstanceLoadingService(org.osate.ge.internal.services.SystemInstanceLoadingService) Bundle(org.osgi.framework.Bundle)

Aggregations

SystemInstanceLoadingService (org.osate.ge.internal.services.SystemInstanceLoadingService)1 Bundle (org.osgi.framework.Bundle)1