com.xumpy.grapias.Config.java Source code

Java tutorial

Introduction

Here is the source code for com.xumpy.grapias.Config.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.xumpy.grapias;

import com.google.common.collect.SortedSetMultimap;
import com.google.common.collect.TreeMultimap;
import com.xumpy.grapias.rest.model.MenuItem;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 *
 * @author nico
 */
@Component
public class Config {
    @Bean
    public SortedSetMultimap<Integer, MenuItem> allMenuItems() {
        SortedSetMultimap<Integer, MenuItem> allMenuItems = TreeMultimap.create();

        return allMenuItems;
    }
}