Package name.pehl.karaka.server.sampledata

Source Code of name.pehl.karaka.server.sampledata.TagProducer

package name.pehl.karaka.server.sampledata;

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

import javax.enterprise.inject.Produces;

import name.pehl.karaka.server.tag.entity.Tag;

class TagProducer
{
    static String[] names = new String[] {"test", "research", "bugfixing", "review", "qa"};


    @Produces
    public List<Tag> produceTags()
    {
        List<Tag> tags = new ArrayList<Tag>();
        for (String name : names)
        {
            Tag tag = new Tag(name);
            tags.add(tag);
        }
        return tags;
    }
}
TOP

Related Classes of name.pehl.karaka.server.sampledata.TagProducer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.