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

com.commercetools.sunrise.framework.template.TemplateControllerComponentsSupplier Maven / Gradle / Ivy

The newest version!
package com.commercetools.sunrise.framework.template;

import com.commercetools.sunrise.framework.components.controllers.ControllerComponent;
import com.commercetools.sunrise.framework.components.controllers.ControllerComponentSupplier;
import com.commercetools.sunrise.framework.reverserouters.common.assets.AssetsLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.common.localization.LocalizationLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.myaccount.addressbook.AddressBookLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.myaccount.authentication.AuthenticationLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.myaccount.changepassword.ChangePasswordLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.myaccount.mydetails.MyPersonalDetailsLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.myaccount.myorders.MyOrdersLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.productcatalog.home.HomeLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.productcatalog.product.ProductLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.shoppingcart.cart.CartLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.shoppingcart.checkout.CheckoutLinksControllerComponent;
import com.commercetools.sunrise.framework.reverserouters.wishlist.WishlistLinksControllerComponent;

import javax.inject.Inject;
import java.util.ArrayList;
import java.util.List;

public class TemplateControllerComponentsSupplier implements ControllerComponentSupplier {

    private final List controllerComponents = new ArrayList<>();

    @Inject
    public TemplateControllerComponentsSupplier(final LocalizationLinksControllerComponent localizationLinksControllerComponent,
                                                final AssetsLinksControllerComponent assetsLinksControllerComponent,
                                                final AddressBookLinksControllerComponent addressBookLinksControllerComponent,
                                                final AuthenticationLinksControllerComponent authenticationLinksControllerComponent,
                                                final ChangePasswordLinksControllerComponent changePasswordLinksControllerComponent,
                                                final MyOrdersLinksControllerComponent myOrdersLinksControllerComponent,
                                                final MyPersonalDetailsLinksControllerComponent myPersonalDetailsLinksControllerComponent,
                                                final HomeLinksControllerComponent homeLinksControllerComponent,
                                                final ProductLinksControllerComponent productLinksControllerComponent,
                                                final CartLinksControllerComponent cartLinksControllerComponent,
                                                final CheckoutLinksControllerComponent checkoutLinksControllerComponent,
                                                final WishlistLinksControllerComponent wishlistLinksControllerComponent) {
        controllerComponents.add(localizationLinksControllerComponent);
        controllerComponents.add(assetsLinksControllerComponent);
        controllerComponents.add(addressBookLinksControllerComponent);
        controllerComponents.add(authenticationLinksControllerComponent);
        controllerComponents.add(changePasswordLinksControllerComponent);
        controllerComponents.add(myOrdersLinksControllerComponent);
        controllerComponents.add(myPersonalDetailsLinksControllerComponent);
        controllerComponents.add(homeLinksControllerComponent);
        controllerComponents.add(productLinksControllerComponent);
        controllerComponents.add(cartLinksControllerComponent);
        controllerComponents.add(checkoutLinksControllerComponent);
        controllerComponents.add(wishlistLinksControllerComponent);
    }

    @Override
    public List get() {
        return controllerComponents;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy