public GenericMessages(Class<?> _itf, String lang) throws IOException, InvalidParameterException {
super(_itf, lang);
}
private String buildMessage(String propertyName, Method method, Object[] args) throws Throwable {
AlternateMessage pluralTextAnnotation = method.getAnnotation(AlternateMessage.class);
Map<Integer, String> pluralParamIndex2pattern = new HashMap<Integer, String>();
String pluralKey =""; //$NON-NLS-1$
Map<String,String> pluralKey2defaultValue = new HashMap<String,String>();
if (pluralTextAnnotation != null) {
String[] pairs = pluralTextAnnotation.value();
for(int i=0; (i+1)<pairs.length; i+=2) {
pluralKey2defaultValue.put(pairs[i], pairs[i+1]);
}
}
Annotation[][] paramsAnnotations = method.getParameterAnnotations();