-
1. Re: how to override the method logic which is currenlty call
peterj May 19, 2009 11:28 AM (in response to kkangsar)By "user" do you mean "an end user who is typing things into a browser" or do you mean "a developer who is going to incorporate your EJBs into their application" or do your mean "a system administrator who is configuring you application for use on their system and wants to override your calculations"? The answer to your question is very different depending on which type of user you are referring to.
For a developer, why would that developer simply not call your method and call their own method instead? -
2. Re: how to override the method logic which is currenlty call
kkangsar May 19, 2009 12:01 PM (in response to kkangsar)sorry for not clearing defined. My user is developer (project implementer)
What I want to do is, I will create a standard calculation method which is suited for most of the project.
But sometime, customer project may have their own calculation method, I would like to design an application which is flexible enough for developer to override if they wish to.
Please advise the way of doing it because I am just starting using EJB and Java. Thanks. -
3. Re: how to override the method logic which is currenlty call
peterj May 19, 2009 12:43 PM (in response to kkangsar)You did not answer this question:
For a developer, why would that developer simply not call your method and call their own method instead?
-
4. Re: how to override the method logic which is currenlty call
kkangsar May 19, 2009 8:13 PM (in response to kkangsar)As I said, the calculation method may not suit for some of the project, the project guy have to write their own logic to override the existing the method.
-
5. Re: how to override the method logic which is currenlty call
peterj May 20, 2009 10:03 AM (in response to kkangsar)So the project guy writes his own calculation logic (perhaps in his own EJB, perhaps as a POJO) and calls that instead of calling your method.