1/* 2 * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23/* 24 * 25 * 26 * (C) Copyright IBM Corp. 1999 - All Rights Reserved 27 * 28 * The original version of this source code and documentation is 29 * copyrighted and owned by IBM. These materials are provided 30 * under terms of a License Agreement between IBM and Sun. 31 * This technology is protected by multiple US and International 32 * patents. This notice and attribution to IBM may not be removed. 33 * 34 */ 35 36import java.util.ResourceBundle; 37import java.util.Locale; 38 39/** 40 * Interface loaded by system class loader allowing 41 * Bug4168625Class instances to be called by 42 * test class. This class provides a common base class 43 * for classes loaded by different loaders. Both the system 44 * loader and the custom loader used by the Bug4168625Test 45 * class load this same interface class using the system class 46 * loader. The custom loader then loads a subclass that is 47 * then passed back to the caller. The fact that the caller 48 * and loader share a common base class allows the caller 49 * to cast the object without causing a ClassCastException. 50 */ 51public interface Bug4168625Getter { 52 /** return the specified resource or null if not found */ 53 public ResourceBundle getResourceBundle(String resource, Locale locale); 54} 55