On Thu, Mar 26, 2009 at 3:14 PM, Alin Dreghiciu <adreghi...@gmail.com> wrote:
> I get now what you want to do but what I do not understand is why? Why
> would you get new Source and SourceParser for each url handler? To me
> is just unnecessary complexity.
>

The reason is I want to have a clean api to integrate proveasyo (pyo?)
with other applications (in particular, with a user interface).

Separating sources i can write

Push push = new Push()  //was Send() before
Source source = new WrapSource(...)
Destination destination = new LocalFileDestination(..)
push.execute(source, destination, parameters)

On the contrary, with generic sources

Push push = new Push()  //was Send() before
Source source = new PaxUrlAdaptorSource(...)
Destination destination = new LocalFileDestination(..)
push.execute(source, destination, parameters)

In the latter, it's not clear from the API what kind of sources
PaxUrlAdaptorSource handles


-- 
Filippo Diotalevi

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to