factory implementation !

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

factory implementation !

prashant punekar
Hi,

Factory Implementation details:

I have

1)      MyInterface (java interface) with method1(), method2(), method3()

2)      MyImpl1 implements MyInterface, so it will have implementations for methods method1(), method2() and method3()

3)      MyImpl2 implements MyInterface, so it will have implementations for methods method1(), method2() and method3()

4)      Class FactoryMethod based on some attribute will instantiate either MyImpl1 or MyImpl2 class and invoke method1, method2 and method3().

Each implementation needs to be an ofbiz service.

How do I design the above stuff using ofbiz interface framework.

Regards,
Prashant




________________________________
http://www.mindtree.com/email/disclaimer.html
Reply | Threaded
Open this post in threaded view
|

Re: factory implementation !

Michał Cukierman
Cant you use FactoryMethod as an Ofbiz service?


Dnia 2010-08-18, śro o godzinie 07:35 +0530, Prashant Punekar pisze:
> FactoryMethod