Is it possible to autowire an instance in a subclass for a field which is fdefined in the base class?
So, The interface:
public interface Xyz { ...}
The abstract base class:
public abstract class Abc {
Xyz xyz;
}
The subclass(es) of the absctract class where I want to autowire a concrete implementation of the interface:
public class Def extend Abc {
@Autowired
// Here I want to autowire a concrete implementation of Xyz, maybe called XyzImpl. Can I do this maybe in a constructor or ...?
}
public class Ghi extend Abc {
@Autowired
// Here I want to autowire a concrete implementation of Xyz, maybe called XyzImpl. Can I do this maybe in a constructor or ...?
}
public class Jkl extend Abc {
@Autowired
// Here I want to autowire a concrete implementation of Xyz, maybe called XyzImpl. Can I do this maybe in a constructor or ...?
}