public interface DependencyContainerService
Some components call Components.createInstance() directly which makes testing tricky sometimes. This interface allows me to replace the default ApplicationDependencyContainerService with a stub or a mock. Further, this approach allows me to better encapsulate the dependency injection logic so that I easily make changes.
Type Params | Return Type | Name and description |
---|---|---|
<T> |
public T |
getBean(java.lang.Class<T> beanClass) |