src/main/java/de/uapcore/lightpit/LightPITModule.java

changeset 36
0f4f8f255c32
parent 34
824d4042c857
child 51
dd0a45ae25d7
equal deleted inserted replaced
35:4fa33bfa8fb9 36:0f4f8f255c32
126 * are proxied by this object. 126 * are proxied by this object.
127 */ 127 */
128 class ELProxy { 128 class ELProxy {
129 private final String bundleBaseName, modulePath, menuKey, titleKey, nameKey, descKey; 129 private final String bundleBaseName, modulePath, menuKey, titleKey, nameKey, descKey;
130 130
131 public static ELProxy convert(LightPITModule annotation) { 131 public ELProxy(LightPITModule annotation) {
132 return new ELProxy( 132 bundleBaseName = annotation.bundleBaseName();
133 annotation.bundleBaseName(), 133 modulePath = annotation.modulePath();
134 annotation.modulePath(), 134 menuKey = annotation.menuKey();
135 annotation.menuKey(), 135 titleKey = annotation.titleKey();
136 annotation.titleKey(), 136 nameKey = annotation.nameKey();
137 annotation.nameKey(), 137 descKey = annotation.descKey();
138 annotation.descKey()
139 );
140 }
141
142 private ELProxy(String bundleBaseName, String modulePath, String menuKey, String titleKey, String nameKey, String descKey) {
143 this.bundleBaseName = bundleBaseName;
144 this.modulePath = modulePath;
145 this.menuKey = menuKey;
146 this.titleKey = titleKey;
147 this.nameKey = nameKey;
148 this.descKey = descKey;
149 } 138 }
150 139
151 public String getBundleBaseName() { 140 public String getBundleBaseName() {
152 return bundleBaseName; 141 return bundleBaseName;
153 } 142 }

mercurial