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

com.boozallen.aiops.mda.basic.cdi.PipelinesCdiContextBase Maven / Gradle / Ivy

Go to download

Contains a barebones model with all features turned off to verify basic MDA generation and compilation

There is a newer version: 1.10.0
Show newest version
package com.boozallen.aiops.mda.basic.cdi;

/*-
 * #%L
 * aiSSEMBLE::Test::MDA::Data Delivery Spark Basic
 * %%
 * Copyright (C) 2021 Booz Allen
 * %%
 * This software package is licensed under the Booz Allen Public License. All Rights Reserved.
 * #L%
 */

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

import javax.enterprise.inject.spi.Extension;

import com.boozallen.aiops.mda.basic.ExampleSyncStep;
import com.boozallen.aiops.mda.basic.ExampleAsyncStep;
import com.boozallen.aissemble.core.cdi.CdiContext;

import io.smallrye.config.inject.ConfigExtension;
import io.smallrye.reactive.messaging.providers.extension.ReactiveMessagingExtension;
import com.boozallen.aiops.data.delivery.messaging.PipelineMessagingConfig;

import io.smallrye.reactive.messaging.providers.extension.ChannelProducer;
import io.smallrye.reactive.messaging.providers.connectors.ExecutionHolder;
import io.smallrye.reactive.messaging.providers.extension.HealthCenter;
import io.smallrye.reactive.messaging.providers.impl.InternalChannelRegistry;
import io.smallrye.reactive.messaging.providers.MediatorFactory;
import io.smallrye.reactive.messaging.providers.extension.MediatorManager;
import io.smallrye.reactive.messaging.providers.wiring.Wiring;
import io.smallrye.reactive.messaging.providers.connectors.WorkerPoolRegistry;
import io.smallrye.reactive.messaging.providers.impl.ConfiguredChannelFactory;
import io.smallrye.reactive.messaging.providers.impl.ConnectorFactories;

/**
 * Configures the CDI context for this application.
 * 
 * GENERATED CODE - DO NOT MODIFY (add your customizations in PipelinesCdiContext).
 * 
 * Generated from: templates/pipeline.cdi.context.base.java.vm
 */
public abstract class PipelinesCdiContextBase implements CdiContext {

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

        customBeans.add(ExampleSyncStep.class);
        customBeans.add(ExampleAsyncStep.class);

        customBeans.add(ChannelProducer.class);
        customBeans.add(ExecutionHolder.class);
        customBeans.add(HealthCenter.class);
        customBeans.add(InternalChannelRegistry.class);
        customBeans.add(MediatorFactory.class);
        customBeans.add(MediatorManager.class);
        customBeans.add(Wiring.class);
        customBeans.add(WorkerPoolRegistry.class);
        customBeans.add(ConfiguredChannelFactory.class);
        customBeans.add(ConnectorFactories.class);

        return customBeans;
    }

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

        // TODO: remove once alerting module aligned with aissemble:
        extensions.add(new ConfigExtension());
        extensions.add(new ReactiveMessagingExtension());
        extensions.add(new PipelineMessagingConfig());

        return extensions;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy