use of org.jboss.galleon.plugin.StateDiffPlugin in project galleon by wildfly.
the class ProvisioningManager method getDiffMergedConfig.
private ProvisioningDiffProvider getDiffMergedConfig() throws ProvisioningException {
final FsDiff diff = getFsDiff();
if (diff == null || diff.isEmpty()) {
return null;
}
try (ProvisioningLayout<FeaturePackRuntimeBuilder> layout = layoutFactory.newConfigLayout(getProvisioningConfig(), ProvisioningRuntimeBuilder.FP_RT_FACTORY, false)) {
final ProvisioningDiffProvider diffProvider = ProvisioningDiffProvider.newInstance(layout, getProvisionedState(), diff, log);
layout.visitPlugins(new FeaturePackPluginVisitor<StateDiffPlugin>() {
@Override
public void visitPlugin(StateDiffPlugin plugin) throws ProvisioningException {
plugin.diff(diffProvider);
}
}, StateDiffPlugin.class);
return diffProvider;
}
}
Aggregations