I have a non-static class which has a static method
public class ITelcoServicesFactory
{
public static ITelco GetITransactionHandler(int pTelcoId, int pTransactionMode)
{
ITelco lITelcoServices = null;
if (pTelcoId < 0)
{
lITelcoServices = new DUMMY_Impl(pTransactionMode);
mLogger.Debug("ITransactionHandler Dummy Implementation");
}
return lITelcoServices;
}
}
this method return instance on the basis of parameters. i am confuse "If multiple transaction comes at the same time will there be any issue with this method" ?
i mean multiple transaction at same time will override this method ? or every transaction will get it own object on the basis of parameters ?
PS : If it does not any harm than why ?