You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Felix Meschberger <fm...@gmail.com> on 2008/02/28 12:19:31 UTC

Re: svn commit: r631669 - in /incubator/sling/trunk: api/src/main/java/org/apache/sling/api/ api/src/main/java/org/apache/sling/api/scripting/ api/src/main/java/org/apache/sling/api/services/ api/src/main/java/org/apache/sling/api/servlets/ api/src/m

Hi,

Am Donnerstag, den 28.02.2008, 08:23 +0100 schrieb Carsten Ziegeler:
> Felix Meschberger wrote:
> > Hi,
> > 
> > Am Mittwoch, den 27.02.2008, 23:12 +0100 schrieb Bertrand Delacretaz:
> >> On Wed, Feb 27, 2008 at 8:16 PM, Felix Meschberger
> >> <Fe...@day.com> wrote:
> >>
> >>> ... I think, we can safely define this reference optional as in:
> >>>
> >>>    @scr.reference cardinality="0..1" policy="dynamic"...
> >> It's probably ok in this case, but please, if someone implements this,
> >> make sure to add clear log messages or exceptions that show when this
> >> service is missing. Problems with missing services can be a real pain
> >> to troubleshoot.
> > 
> > Well, the service is really only needed when uploading files and when
> > the request does not provide an appropriate mime type for the file. In
> > fact the service, would not even be required, because the ServletContext
> > could just as well be used.... (and the ServletContext provided to
> > servlets in Sling in turn goes back to the MimeTypeService).
> > 
> :)
> 
> I agree that we either should make the reference dynamic or use the 
> servlet context. I would opt for using the servlet context.
> 
> I'll make the changes today.

I created SLING-286 for this and already have the implementation, but
not committed yet, as I also have the move of the
launchpad/lauchpad-servlets module to sling/ujax on the platter...

Regards
Felix


Re: svn commit: r631669 - in /incubator/sling/trunk: api/src/main/java/org/apache/sling/api/ api/src/main/java/org/apache/sling/api/scripting/ api/src/main/java/org/apache/sling/api/services/ api/src/main/java/org/apache/sling/api/servlets/ api/src/m

Posted by Felix Meschberger <fm...@gmail.com>.
Hi Carsten,

Am Donnerstag, den 28.02.2008, 13:24 +0100 schrieb Carsten Ziegeler:
> Felix Meschberger wrote
> 
> >>
> >> I agree that we either should make the reference dynamic or use the 
> >> servlet context. I would opt for using the servlet context.
> >>
> >> I'll make the changes today.
> > 
> > I created SLING-286 for this and already have the implementation, but
> > not committed yet, as I also have the move of the
> > launchpad/lauchpad-servlets module to sling/ujax on the platter...
> > 
> Argh, for whatever reason I didn't see SLING-286 and did the changes already
> today in the morning :)
> Hope this doesn't create extra work for you!

Don't worry be happy ;-) It was partly my fault, because I moved the
project in my workspace last night deferring committing it .... My bad,
but now it is fixed and everything should be in place.

Regards
Felix


Re: svn commit: r631669 - in /incubator/sling/trunk: api/src/main/java/org/apache/sling/api/ api/src/main/java/org/apache/sling/api/scripting/ api/src/main/java/org/apache/sling/api/services/ api/src/main/java/org/apache/sling/api/servlets/ api/src/m

Posted by Carsten Ziegeler <cz...@apache.org>.
Felix Meschberger wrote

>>
>> I agree that we either should make the reference dynamic or use the 
>> servlet context. I would opt for using the servlet context.
>>
>> I'll make the changes today.
> 
> I created SLING-286 for this and already have the implementation, but
> not committed yet, as I also have the move of the
> launchpad/lauchpad-servlets module to sling/ujax on the platter...
> 
Argh, for whatever reason I didn't see SLING-286 and did the changes already
today in the morning :)
Hope this doesn't create extra work for you!

Sorry
Carsten


-- 
Carsten Ziegeler
cziegeler@apache.org