[wsf-c-dev] [C++] Exceptions in OMFactory
Samisa Abeysinghe
samisa at wso2.com
Tue Nov 6 23:15:16 PST 2007
Senaka Fernando wrote:
> On Wed, 2007-11-07 at 11:08 +0530, Samisa Abeysinghe wrote:
>
>> Senaka Fernando wrote:
>>
>>> On Wed, 2007-11-07 at 09:08 +0530, Samisa Abeysinghe wrote:
>>>
>>>
>>>> Do we need to have a factory for this API?
>>>>
>>>>
>>> Yes, we do, the reason is we need the env for C functions and we are not
>>> exposing the reference to it. Thus, when we create OM classes the env is
>>> set through the factory.
>>>
>>> The env of the factory is set from the Service Client.
>>>
>>>
>> How come service client set the env of the factory? It does not make
>> sense.
>>
>
> Well, it is like the service client will own a OM Factory that can
> create OM Classes.
That does not sound like correct OO. Service client sends OM and
receives OM. It has nothing to do with creating OM.
> The service client is a friend of the OM Factory and
> is the only person who can construct the factory.
Use of friend is always discouraged. That violates encapsulation.
Samisa...
--
Samisa Abeysinghe
Software Architect; WSO2 Inc.; http://www.wso2.com/
email: samisa at wso2.com; cell: +94 77 753 7913
"Oxygenating the Web Service Platform."
More information about the Wsf-c-dev
mailing list