Hi,

If I have component implementation class like this:

Case 1:
public class MyServiceImpl implements MyService {
   private YourService yourService;

   public void setYourService(YourService yourService) {
       this.yourService = yourService;
   }
}

public interface MyService {
   @Reference
   void setYourService(YourService yourService);
}

Q1: Should "yourService" be treated as a reference?

Case 2:
public class MyServiceImpl extends MyServiceBaseImpl {
   public void setYourService(YourService yourService) {
       super.setYourService(yourService);
       // Do addtional things here
   }
}

public class MyServiceBaseImpl {
   protected YourService yourService;

   @Reference
   public void setYourService(YourService yourService) {
       this.yourService = yourService;
   }
}

Q2: Should "yourService" be treated as a reference?

Am I crazy?

Thanks,
Raymond

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to