I have the ITest
interface and the ClassA
class:
interface ITest {}
class ClassA implements ITest {}
The XML configuration:
<bean id="objectA" class= "ClassA" />
class Test {
ITest objectB;
}
Although there is no bean declared in the XML file for reference objectB
but it has ClassA
object. Is it because it's singleton and objectA
reference declared?