}
@SuppressWarnings("unchecked")
public Injector<?> getInjector(ContextResolver resolver) {
if (method != null) {
return new MethodInjector(method, new AutowireObjectFactory(method.getParameterTypes()[0], resolver));
} else {
return new FieldInjector(field, new AutowireObjectFactory(field.getType(), resolver));
}
}