builder.addBundleActivator(BundleActivatorBridge.class);
builder.addManifestHeader(Constants.MODULE_ACTIVATOR, ModuleActivatorA.class.getName());
builder.addImportPackages(Runtime.class, Resource.class, ServiceLocator.class, MBeanServer.class);
return builder.openStream();
} else {
ManifestBuilder builder = new ManifestBuilder();
builder.addIdentityCapability(RESOURCE_A, Version.emptyVersion);
builder.addManifestHeader(Constants.MODULE_ACTIVATOR, ModuleActivatorA.class.getName());
builder.addManifestHeader("Dependencies", "org.jboss.gravia");
return builder.openStream();
}
}
});
return archive.getArchive();
}