Hello Ranchers,
I've got to ask ye this so as I can put the record straight. In my business service class instead of doing:
BusinessService(DAODatabase database)
what I've done instead is
BusinessService(String Connection)
where the string connection is currently a file location but in the future can be an sql statement. Using the parameter, it calls on the scheme to get the DAO. Would it be correct to say that my constructor has dependency injection?
Thanks ranchers
Kevin
I've got to ask ye this so as I can put the record straight. In my business service class instead of doing:
BusinessService(DAODatabase database)
what I've done instead is
BusinessService(String Connection)
where the string connection is currently a file location but in the future can be an sql statement. Using the parameter, it calls on the scheme to get the DAO. Would it be correct to say that my constructor has dependency injection?
Thanks ranchers
Kevin