I'm just curious why there is a need for autowiring static class. BTW I found one of stack overflow link which might answer your question. Please refer this.