net.stickycode.configured.guice4.finder.GuiceBeanFinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sticky-configured-guice4 Show documentation
Show all versions of sticky-configured-guice4 Show documentation
Taking the configuration out of applications when using Guice, using the same principles that underly dependency injection and IOC
The newest version!
package net.stickycode.configured.guice4.finder;
import javax.inject.Inject;
import net.stickycode.bootstrap.ComponentContainer;
import net.stickycode.configured.finder.BeanFinder;
import net.stickycode.configured.finder.BeanNotFoundException;
import net.stickycode.stereotype.StickyComponent;
@StickyComponent
public class GuiceBeanFinder
implements BeanFinder {
@Inject
ComponentContainer injector;
@Override
public T find(Class type) throws BeanNotFoundException {
return injector.find(type);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy