show mutual properties across different component types

This commit is contained in:
bancika
2011-08-27 20:36:37 +00:00
parent 7d3a7c30ca
commit 69e2296c23
7 changed files with 29 additions and 16 deletions
@@ -141,8 +141,8 @@ public class ComponentProcessor {
Method setter = clazz.getMethod("set" + method.getName().substring(3),
method.getReturnType());
PropertyWrapper property = new PropertyWrapper(name,
method.getReturnType(), method, setter, annotation.defaultable(),
validator);
method.getReturnType(), method.getName(), setter.getName(),
annotation.defaultable(), validator);
properties.add(property);
}
} catch (NoSuchMethodException e) {
@@ -173,9 +173,11 @@ public class InstantiationManager {
* @throws IllegalArgumentException
* @throws IllegalAccessException
* @throws InvocationTargetException
* @throws NoSuchMethodException
* @throws SecurityException
*/
public void fillWithDefaultProperties(Object object) throws IllegalArgumentException,
IllegalAccessException, InvocationTargetException {
IllegalAccessException, InvocationTargetException, SecurityException, NoSuchMethodException {
// Extract properties.
List<PropertyWrapper> properties = ComponentProcessor.getInstance().extractProperties(
object.getClass());