1 package org.kite9.framework.alias;
2
3 import java.util.Properties;
4
5 /***
6 * Allows aliases to be provided in a property file.
7 *
8 * @author moffatr
9 *
10 */
11 public class PropertyAliaser extends AbstractAliaser {
12
13 Properties p = new Properties();
14
15
16 public PropertyAliaser() {
17 }
18
19 public void setProperties(Properties p) {
20 this.p = p;
21 }
22
23 @Override
24 protected String getDefinedAlias(String fullName) {
25 return p.getProperty(fullName);
26 }
27
28
29 }