builder.addManifestHeader(Constants.MODULE_ACTIVATOR, ModuleActivatorB.class.getName());
builder.addImportPackages(Runtime.class, Resource.class, ServiceLocator.class);
builder.addImportPackages(MBeanServer.class, ModuleStateB.class);
return builder.openStream();
} else {
ManifestBuilder builder = new ManifestBuilder();
builder.addIdentityCapability(RESOURCE_B1, Version.emptyVersion);
builder.addManifestHeader(Constants.MODULE_ACTIVATOR, ModuleActivatorB.class.getName());
builder.addManifestHeader("Dependencies", "org.jboss.gravia," + RESOURCE_B);
return builder.openStream();
}
}
});
return archive.getArchive();
}