use of org.apache.commons.beanutils.BeanToPropertyValueTransformer in project mule by mulesoft.
the class DefaultArchiveDeployer method isUpdatedZombieArtifact.
@Override
public boolean isUpdatedZombieArtifact(String artifactName) {
@SuppressWarnings("rawtypes") Collection<String> deployedAppNames = collect(artifacts, new BeanToPropertyValueTransformer(ARTIFACT_NAME_PROPERTY));
if (deployedAppNames.contains(artifactName) && (!artifactZombieMap.containsKey(artifactName))) {
return false;
}
// First get saved zombieFile
ZombieArtifact zombieArtifact = artifactZombieMap.get(artifactName);
if ((zombieArtifact != null) && (!zombieArtifact.updatedZombieApp())) {
return false;
}
return true;
}
Aggregations