Trying to figure out conifguring DI based on Java examples