com.blossomproject.autoconfigure.ui.MenuAutoConfiguration Maven / Gradle / Ivy
package com.blossomproject.autoconfigure.ui;
import static com.blossomproject.autoconfigure.ui.WebContextAutoConfiguration.BLOSSOM_BASE_PATH;
import com.blossomproject.core.common.PluginConstants;
import com.blossomproject.ui.menu.Menu;
import com.blossomproject.ui.menu.MenuImpl;
import com.blossomproject.ui.menu.MenuInterceptor;
import com.blossomproject.ui.menu.MenuItem;
import com.blossomproject.ui.menu.MenuItemBuilder;
import com.blossomproject.ui.menu.MenuItemPlugin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
import org.springframework.core.annotation.Order;
import org.springframework.plugin.core.PluginRegistry;
import org.springframework.plugin.core.config.EnablePluginRegistries;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* Created by Maël Gargadennnec on 05/05/2017.
*/
@Configuration
@EnablePluginRegistries({MenuItemPlugin.class})
@ConditionalOnWebApplication
public class MenuAutoConfiguration {
@Autowired
@Qualifier(value = PluginConstants.PLUGIN_MENU)
private PluginRegistry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy