01: /*****************************************************************************
02: * Copyright (C) NanoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Idea by Rachel Davies, Original code by Aslak Hellesoy and Paul Hammant *
09: *****************************************************************************/package org.nanocontainer.testmodel;
10:
11: public class FlintstonesImpl {
12: public FlintstonesImpl(Wilma wilma, FredImpl fred) {
13: if (wilma == null) {
14: throw new NullPointerException(
15: "Wilma cannot be passed in as null");
16: }
17:
18: if (fred == null) {
19: throw new NullPointerException(
20: "FredImpl cannot be passed in as null");
21: }
22: }
23: }
|