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

org.nanocontainer.testmodel.FredImpl Maven / Gradle / Ivy

/*****************************************************************************
 * Copyright (C) NanoContainer Organization. All rights reserved.            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *                                                                           *
 * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant   *
 *****************************************************************************/

package org.nanocontainer.testmodel;


public class FredImpl {
    Wilma wilma;

    public FredImpl(Wilma wilma) {
        this.wilma = wilma;
		if (wilma == null) {
			throw new NullPointerException("Wilma cannot be passed in as null");
		}
        wilma.hello();
    }

    public Wilma wilma() {
        return wilma;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy