001 /***************************************************************************** 002 * Copyright (C) NanoContainer 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 * Original code by Aslak Hellesoy and Paul Hammant * 009 *****************************************************************************/ 010 011 package org.nanocontainer.testmodel; 012 013 /** 014 * For a two parameter confiuration, you might prefer to use 015 * addParameterForComponent on OldRegistrationPicoContainer. This example 016 * that uses a separate configuration object would be better 017 * for cases where there were say fifty configurable things 018 * about a particilar component. 019 */ 020 public interface WebServerConfig { 021 022 String getHost(); 023 024 int getPort(); 025 }