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

templates.pipeline.cdi.context.base.vm Maven / Gradle / Ivy

The newest version!
package ${basePackage}.cdi;

import java.util.ArrayList;
import java.util.List;

import jakarta.enterprise.inject.spi.Extension;

#foreach ($step in $pipeline.steps)
import ${basePackage}.${step.capitalizedName};
#end
#foreach ($store in $pipeline.fileStores)
import ${basePackage}.filestore.${store.fullName};
#end

import com.boozallen.aissemble.core.cdi.CdiContext;
import com.boozallen.aiops.data.delivery.messaging.PipelineMessagingConfig;


/**
 * Configures the CDI context for this application.
 *
 * GENERATED CODE - DO NOT MODIFY (add your customizations in PipelinesCdiContext).
 *
 * Generated from: ${templateName} 
 */
public abstract class PipelinesCdiContextBase implements CdiContext {

    /**
     * {@inheritDoc}
     */
    @Override
    public List> getCdiClasses() {
        List> customBeans = new ArrayList<>();

#foreach ($step in $pipeline.steps)
        customBeans.add(${step.capitalizedName}.class);
#end
#foreach ($store in $pipeline.fileStores)
        customBeans.add(${store.fullName}.class);
#end

        return customBeans;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List getExtensions() {
        List extensions = new ArrayList<>();
        extensions.add(new PipelineMessagingConfig());
        return extensions;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy