Ronan Lucio
unread,Sep 22, 2010, 2:58:36 PM9/22/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cfc...@googlegroups.com
Hi,
We have an application that talks to the model via service layer.
Service store its logic in a high level way and have access to Data Access Objects.
Record's logic resides on beans.
Its working fine as its supposed to.
Now I'm developing an export task.
This export task has many logics where in a well refactored code it will result in several methods.
So my doubt is where to put such a methods.
In one hand, these methods don't refers to Data Access, its a Information Processing.
In the other hand, I don't want to fulfill my Services with "internal" methods. It's supposed to contains just "services".
To complex things a little bit, I need to use inheritance for these methods.
Being more clear:
The user just need to export his/her real estates.
We have a standard layout for exporting.
Nonetheless, the user can export to other real estate portals.
Each real estate portal have its own layout standard.
So I will need methods like validadeRealEstateRecord(), convertRealEstateType() and so to adjust the records for each standard, before exporting the data to an XML file.
My first doubt is where to put this kind of method.
The second doubt is how to deal with inheritance in this case.
I would like to have an AbstractClass for export to the standard layout, and each portal we access exportation would have a specialization Class.
Each Class/specialization would have its polymorphic methods.
So what kind of Class would it be?
Thanks,
Ronan