All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.stickycode.configured.guice4.finder.GuiceBeanFinder Maven / Gradle / Ivy

Go to download

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