mpc.setValue(property.value());
mbc.addProperty(mpc);
continue;
}
// Support deprecated @Value annotation as well
Value value = (Value) field.getAnnotation(Value.class);
if (value != null) {
if (log().isDebugEnabled()) {
log().debug(" Field '" + field.getName() + "' has a @Value annotation");
}
ManagedPropertyConfig mpc = new ManagedPropertyConfig();
mpc.setName(field.getName());
mpc.setType(field.getType().getName()); // FIXME - primitives, arrays, etc.
mpc.setValue(value.value());
mbc.addProperty(mpc);
continue;
}
}
config.addManagedBean(mbc);