Feedback Form
Thread

One Service Two Implementations Problem

By shankha - JCRDev | Posted on 2009-12-28 23:59


Say, I have two implementation with same name  BaseImpl  in two bundles say, bundle1 and bundle2 for the same service BaseService. Now when I try the following code:

BaseService bs = new BundleImpl(); as both the implementation classes are with the same name, which one will be invoked? I mean the BundleImpl() at bundle1 or in bundle2?

Please help.

 

 

Rated 0.0 by 0 user.
JCR Developer Forum Search

FORUM SEARCH

JCR DEVELOPERS (level, posts)

Sujoy Bhattacharjee (bhatasuj)
JCRDev
Blog Posts 5 | Forum Posts 5
Romit Bose (romitbose)
JCRDev
Blog Posts 0 | Forum Posts 0
Ruben Reusser (reusr1)
JCRDev
Blog Posts 0 | Forum Posts 0
Wayne Lund (wxlund)
JCRDev
Blog Posts 0 | Forum Posts 0
Luis Fernandez (guisho)
JCRDev
Blog Posts 0 | Forum Posts 0
Jong Tenerife (jongdakkel)
JCRDev
Blog Posts 0 | Forum Posts 2
Jay Kerger (jkerger)
JCRDev
Blog Posts 2 | Forum Posts 2
Subhasis Chakraborty (subhasis)
JCRDev
Blog Posts 4 | Forum Posts 13
Nitesh Ambuj (nambuj)
JCRLead
Blog Posts 5 | Forum Posts 18
Amitava Chakraborty (meamitava)
JCRLead
Blog Posts 8 | Forum Posts 14