support full trait spec for injection