1 package api.cintoo.messages.bundle; 2 3 import java.util.ResourceBundle ; 4 5 public abstract class BaseBundle extends ResourceBundle { 6 public BaseBundle() { 7 } 8 9 public void setParent(ResourceBundle parent) { 10 if (this == parent) { 11 throw new IllegalArgumentException ("Can't set bundle as its own parent."); 12 } 13 this.parent = parent; 14 } 15 16 public ResourceBundle getParent() { 17 return parent; 18 } 19 } 20 | Popular Tags |