1 23 24 29 30 31 package com.sun.appserv.management.util.misc; 32 33 import java.util.ResourceBundle ; 34 35 38 final class ResourceBundleStringSource extends StringSourceBase 39 { 40 final ResourceBundle mBundle; 41 42 public 43 ResourceBundleStringSource( final ResourceBundle bundle, final StringSource delegate ) 44 { 45 super( delegate ); 46 mBundle = bundle; 47 } 48 49 public String  50 getString( String id ) 51 { 52 String result = mBundle.getString( id ); 53 54 if ( result == null ) 55 { 56 result = super.getString( id ); 57 } 58 return( result ); 59 } 60 } 61 62 | Popular Tags |