package moviefindertest.guice; import com.google.inject.PrivateModule; import com.google.inject.Singleton; public class SimpleMovieListerPrivateModule extends PrivateModule { @Override protected void configure() { bind(MovieFinder.class) .to(SimpleMovieFinder.class); bind(MovieLister.class) .annotatedWith(Simple.class) .to(MovieLister.class) .in(Singleton.class); expose(MovieLister.class).annotatedWith(Simple.class); } }
SimpleMovieListerPrivateModule Class – Guice Java
Leave a Comment »
No comments yet.
RSS feed for comments on this post.

