com.shinesolutions.aemstackmanager.config.MappingConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aem-stack-manager Show documentation
Show all versions of aem-stack-manager Show documentation
Java application for managing AEM infrastructure created using aem-aws-stack-builder
The newest version!
package com.shinesolutions.aemstackmanager.config;
import com.shinesolutions.aemstackmanager.handler.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.HashMap;
import java.util.Map;
@Configuration
public class MappingConfig {
@Bean
@SuppressWarnings("serial")
public Map taskHandlerMappings(
final PromoteAuthorTaskHandler promoteAuthorTaskHandler,
final DeployArtifactsTaskHandler deployArtifactsTaskHandler,
final DeployArtifactTaskHandler deployArtifactTaskHandler,
final ExportPackageTaskHandler exportPackageTaskHandler,
final ImportPackageTaskHandler importPackageTaskHandler,
final OfflineSnapshotTaskHandler offlineSnapshotTaskHandler,
final OfflineCompactionSnapshotTaskHandler offlineCompactionSnapshotTaskHandler
) {
return new HashMap() {
{
put("promote-author", promoteAuthorTaskHandler);
put("deploy-artifacts", deployArtifactsTaskHandler);
put("deploy-artifact", deployArtifactTaskHandler);
put("export-package", exportPackageTaskHandler);
put("import-package", importPackageTaskHandler);
put("offline-snapshot", offlineSnapshotTaskHandler);
put("offline-compaction-snapshot", offlineCompactionSnapshotTaskHandler);
}
};
}
}