1 /***************************************************************************** 2 * Copyright (C) NanoContainer Organization. All rights reserved. * 3 * ------------------------------------------------------------------------- * 4 * The software in this package is published under the terms of the BSD * 5 * style license a copy of which has been included with this distribution in * 6 * the LICENSE.txt file. * 7 * * 8 * Original code by Mike Hogan * 9 *****************************************************************************/ 10 11 12 package org.nanocontainer.testmodel; 13 14 public interface MockComponent { 15 int getPort(); 16 17 void setPort(int port); 18 19 String getServer(); 20 21 void setServer(String server); 22 23 void addRegister(Integer i); 24 25 int getNumRegisters(); 26 27 boolean hasRegister(int i); 28 } 29