/**
* Resolves bean's auto-wire flag from the annotation. Returns default auto-wire if annotation doesn't exist.
*/
public static WiringMode resolveBeanWiringMode(Class type) {
PetiteBean petiteBean = ((Class<?>) type).getAnnotation(PetiteBean.class);
return petiteBean != null ? petiteBean.wiring() : WiringMode.DEFAULT;
}
/**
* Resolves bean's scope type from the annotation. Returns <code>null</code>
* if annotation doesn't exist.