// Lookup method to use
Method method = determineMethod(target);
// Cache descriptor and create fast method
DynamicPropertyDescriptor propertyDescriptor;
if (method == null)
{
propertyDescriptor = new DynamicPropertyDescriptor(target, null, false);
}
else
{
FastClass fastClass = FastClass.create(Thread.currentThread().getContextClassLoader(), target);
FastMethod fastMethod = fastClass.getMethod(method);
propertyDescriptor = new DynamicPropertyDescriptor(target, fastMethod, fastMethod.getParameterTypes().length > 0);
}
cache.add(propertyDescriptor);
return propertyDescriptor;
}
}