Automatic injection of properties