add annotation and enum used for spring's autowire feature.