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: * Original code by Aslak Hellesoy and Paul Hammant *
09: *****************************************************************************/package org.nanocontainer.testmodel;
10:
11: /**
12: * For a two parameter confiuration, you might prefer to use
13: * addParameterForComponent on OldRegistrationPicoContainer. This example
14: * that uses a separate configuration object would be better
15: * for cases where there were say fifty configurable things
16: * about a particilar component.
17: */
18: public interface WebServerConfig {
19:
20: String getHost();
21:
22: int getPort();
23: }
|