001    /*****************************************************************************
002     * Copyright (c) PicoContainer Organization. All rights reserved.            *
003     * ------------------------------------------------------------------------- *
004     * The software in this package is published under the terms of the BSD      *
005     * style license a copy of which has been included with this distribution in *
006     * the LICENSE.txt file.                                                     *
007     *                                                                           *
008     * Idea by Rachel Davies, Original code by various                           *
009     *****************************************************************************/
010    package org.nanocontainer.testmodel;
011    
012    
013    
014    /**
015     * @author Stephen Molitor
016     * @version $Revision: 1631 $
017     */
018    public class IdGeneratorImpl implements IdGenerator {
019    
020        private int nextId = 0;
021    
022        public Integer nextId() {
023            return new Integer(++nextId);
024        }
025    
026    }