Hi guys!
Accordingly to that discussion, object implementing IDfClientX "is typically used when accessing DFC from native environments - C/C++, COM, .NET". So I don't understand why in Java-only sample code developers use that object instead of IDfClient? For example, for creating new session:
DfClientX clientx = new DfClientX();
IDfClient client = clientx.getLocalClient();
IDfSessionManager sessionMgr = client.newSessionManager();
IDfLoginInfo loginInfo = clientx.getLoginInfo();
loginInfo.setUser(userName);
loginInfo.setPassword(password);
I think it is because we haven't factory method getLoginInfo() in interface IDfClient. WHY????? Why should I use interfaces designed for native environments, COM, etc just to create IDfLoginInfo instance?
Few developers suggests to instantiate DfLoginInfo with 'new'. But it isn't reasonable solution, since it disagrees with DFC ideology which states that we should not instantiate objects with hands but prefer to use factory and normal methods.
Any thoughts? Thanks.