i have a interface class and find that my Spring project so many other class has implement that interface class.
when i create a new get object in the interface and i want only 1 other class which implement with that interface class.
after that i want to set the value and get the value in other module/compoent in java eclispe.
why the class is passing the implementation class as parameter when getting value from interface like below coding..
public inferface logonsession {
public String getlogonMehtod(){
}
}
public class personalLogonsession implement logonsession {
logonsession getlogonsession = (longonsession) new logonsession();
String StrLgoonMehtod= getlogonsession(logonsession.class).getlogonMethod ()
}
why the getlogonsession(logonsession.class).getlogonMethod () need to passing .class "logonsession.class" in parameter?