Constructor<T> constructor, Object instantiated, Object[] injected, long duration) {
final TypeNameExtractor extractor = container.getComponent(TypeNameExtractor.class);
Object object = componentAdapter.getComponentKey();
if (object instanceof Class<?>) {
Class<?> type = (Class<?>) object;
setter.setAttribute(extractor.nameFor(type), instantiated);
} else if (instantiated != null){
setter.setAttribute(extractor.nameFor(instantiated.getClass()), instantiated);
}
}
}