Transformer or Converter?

Asked

Viewed 57 times

1

I have worked on some project and come across situations where a certain object has to be transformed into another.

In general, these are java classes originated in COBOL that I convert to another type, but with clearer and more intuitive class names, methods and attributes.

I’ve been using the Apache Collections, more specifically the interface Transformer and related utility classes.

I have adopted as class name something like <NomeDoBean>Transformer. My question is:

What’s the difference between Converter and Transformer, in that context?

I know that JSF uses the term Converter. What term to use and why?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.