users@jersey.java.net

Re: [Jersey] Hello World! and Welcome to jersey-multipart

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Tue, 4 Nov 2008 09:37:56 -0800 (PST)

Paul Sandoz wrote:
>
> I like the idea of general support for configuration using a Java class.
>
> If say there was a property name:
>
> com.sun.jersey.multipart.config
>
> whose value was an instance or a fully qualified class name that is
> the class of the instance then it would be very easy to inject such an
> instance.
>
> @JerseyProperty("com.sun.jersey.multipart.config") MailConfig cg;
>
> Or perhaps define the property name on the MailConfig class instead.
>

Alternatively, would this work? Let the MessageReader/Writer expects a
MailConfig in its constructor and that instance gets injected by Jersey,
Guice or anything else. This approach wouldn't require an explicit property.
-- 
View this message in context: http://n2.nabble.com/Hello-World%21-and-Welcome-to-jersey-multipart-tp1343189p1455820.html
Sent from the Jersey mailing list archive at Nabble.com.