All Questions
4 questions
0
votes
2
answers
322
views
Is it bad to use checked exceptions as API response?
Consider the following code:
public class User {
private String password;
public void changePassword( String oldPassword,
String newPassword) throws ...
-1
votes
1
answer
752
views
Exposing java service as static method or seam dependency
Our legacy application provide a static method public static boolean persist(Data data) for service/class callers for data persistence.
I do see unit testing issue for callers. Is this also an ...
0
votes
1
answer
2k
views
The usefulness of java util classes to call a service (to create a model) as opposed to using that services's impl
Example
I will explain the paradigm below but I am specifically talking about Liferay's Service Builder code for anyone who knows that platform.
Basically in Liferay you can definite a model and it'...
1
vote
2
answers
1k
views
Polymorphic constants in Java
I am designing some polymorphic code to perform mathematical operations. The idea is to abstract out the underlying representation of the data, as different use cases require different representations....