Seems to be a good idea. Can you shed some light on this: "URL
constructor can be easily used by a dependency injection framework
to create an instance."?

Aliaksandr

On Fri, Apr 27, 2012 at 10:53 AM, Jörn Kottmann <[email protected]> wrote:

> Hi all,
>
> currently a model can only be loaded from an InputStream.
> I suggest that we extend this a bit and give all models
> two additional constructors, one to load from a URL and one
> to load from a File.
>
> This makes it easier to instantiate a model. The URL constructor
> can be easily used by a dependency injection framework to
> create an instance.
>
> Many users just load a model from a file for testing, having a constructor
> which takes a File will ensure that the InputStream handling is done
> correctly.
>
> Any opinions?
>
> Jörn
>

Reply via email to