return new String[] { obj.toString() };
List<Object> params = new ArrayList<Object>();
Constructor<?> constructor = getConstructor(obj);
SpringConstructor constructorAnnotation = constructor.getAnnotation(SpringConstructor.class);
if (constructorAnnotation != null && constructorAnnotation.constructorParamsGetters() != null) {
for (String paramGetter : constructorAnnotation.constructorParamsGetters()) {
Object paramValue = obj.getClass().getMethod(paramGetter, new Class<?>[0]).invoke(obj, new Object[0]);
params.add(paramValue);
}
}
return params.toArray();