return Iterables.getFirst(filteredConstructor, constructors[0]);
}
private void registerFactory(Class componentType) {
if (ComponentFactory.class.isAssignableFrom(componentType)) {
final Class<?> target = new ComponentFactoryIntrospector().targetTypeForComponentFactory(componentType);
Type adapterType = Types.newParameterizedType(ComponentFactoryProviderAdapter.class, target);
Type factoryType = Types.newParameterizedType(ComponentFactory.class, target);
// binder.bind(TypeLiteral.get(adapterType));
binder.bind(TypeLiteral.get(factoryType)).to(componentType);
binder.bind(target).toProvider((TypeLiteral) TypeLiteral.get(adapterType));