org.nanocontainer.testmodel..svn.text-base.FredImpl.svn-base 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