All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.shinesolutions.aemstackmanager.config.MappingConfig Maven / Gradle / Ivy

Go to download

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);
            }
        };
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy