private final String listenerType;
public ValueChangeListenerHandler(TagConfig config) {
super(config);
this.binding = this.getAttribute("binding");
TagAttribute type = this.getAttribute("type");
if (type != null) {
if (!type.isLiteral()) {
throw new TagAttributeException(type,
"Must be a literal class name of type ValueChangeListener");
} else {
// test it out
try {
ReflectionUtil.forName(type.getValue());
} catch (ClassNotFoundException e) {
throw new TagAttributeException(type,
"Couldn't qualify ValueChangeListener", e);
}
}
this.listenerType = type.getValue();
} else {
this.listenerType = null;
}
}