Making Spring container happy.

Spring does not support both ctor and property injection, it is either one or the other.