2 Replies Latest reply on Sep 12, 2011 8:20 PM by brandizzi

    Benefits from using @Exact

    brandizzi

      Hello, all.


      What is the purpose of using the @Exact annotation like below (MyBean being an interface and SpecifcMyBean one implementation of it):


      public class ToBeInjected {
          @Inject @Exact(SpecificMyBean.class)
          private MyBean myBean;
      }



      instead of using the type to define the bean?


      public class ToBeInjected {
          @Inject
          private SpecificMyBean myBean;
      }