2 Replies Latest reply on Sep 12, 2011 8:20 PM by Adam Victor Brandizzi

    Benefits from using @Exact

    Adam Victor Brandizzi Newbie

      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;
      }