});
if ( _setters.size() == oldlen) {
- throw new IllegalArgumentException("No setter found for '" + aName + "'");
+ throw new IllegalArgumentException("No setter found for '" + aName + "' in " + _class.getName());
}
return this;
}
* @param aScope Scope within which invocation takes place.
* @param aObject Object on which the invocation takes place.
*/
- public void invoke(Scope aScope, Object aObject) {
+ public void inject(Scope aScope, Object aObject) {
if ( !_class.isInstance(aObject)) {
throw new IllegalArgumentException("Object '" + aObject + "' is not an instance of "
+ _class.getName());