use of org.qi4j.runtime.types.ValueTypeFactory in project qi4j-sdk by Qi4j.
the class PropertyModel method bind.
@Override
public void bind(Resolution resolution) throws BindingException {
ValueTypeFactory factory = ValueTypeFactory.instance();
Class<?> declaringClass = ((Member) accessor()).getDeclaringClass();
Class<?> mainType = first(resolution.model().types());
valueType = factory.newValueType(type(), declaringClass, mainType, resolution.layer(), resolution.module());
builderInfo = new BuilderPropertyInfo();
if (type instanceof TypeVariable) {
type = Classes.resolveTypeVariable((TypeVariable) type, declaringClass, mainType);
}
}
Aggregations