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 } |