1 /* 2 * The contents of this file are subject to the terms 3 * of the Common Development and Distribution License 4 * (the License). You may not use this file except in 5 * compliance with the License. 6 * 7 * You can obtain a copy of the license at 8 * https://glassfish.dev.java.net/public/CDDLv1.0.html or 9 * glassfish/bootstrap/legal/CDDLv1.0.txt. 10 * See the License for the specific language governing 11 * permissions and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL 14 * Header Notice in each file and include the License file 15 * at glassfish/bootstrap/legal/CDDLv1.0.txt. 16 * If applicable, add the following below the CDDL Header, 17 * with the fields enclosed by brackets [] replaced by 18 * you own identifying information: 19 * "Portions Copyrighted [year] [name of copyright owner]" 20 * 21 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 22 */ 23 24 package com.sun.enterprise.admin.jmx.remote; 25 26 /** 27 * An interface to abstract out the String Manager used by the JMX connector 28 * client and JMX connector server. 29 */ 30 public interface IStringManager { 31 32 /** 33 * Returns a localized string. 34 * @param key the key to the local format string 35 * @return the localized string 36 */ 37 public String getString(String key); 38 39 /** 40 * Returns a local string for the caller and format the arguments 41 * accordingly. 42 * @param key the key to the local format string 43 * @param arg1 the one argument to be provided to the formatter 44 * @return a formatted localized string 45 */ 46 public String getString(String key, Object arg); 47 48 /** 49 * Returns a local string for the caller and format the arguments 50 * accordingly. 51 * 52 * @param key the key to the local format string 53 * @param args the array of arguments to be provided to the formatter 54 * 55 * @return a formatted localized string 56 */ 57 public String getString(String key, Object[] args); 58 59 } 60 61