Http Whiteboard propertytypes annotation support [message #1818229] |
Tue, 10 December 2019 14:48 |
Erwin De Ley Messages: 52 Registered: August 2013 |
Member |
|
|
(reposted from Equinox forum, where the feedback was that this is PDE-related.
cfr https://www.eclipse.org/forums/index.php/t/1101654/ )
I understood Equinox supports Http Whiteboard v1.1 from its 4.11 release.
Cfr https://bugs.eclipse.org/bugs/show_bug.cgi?id=544011
But I could not find anything related to support for org.osgi.service.http.whiteboard.propertytypes, e.g. @HttpWhiteboardServletPattern, @HttpWhiteboardServletMultipart etc.
I could not find anything for them in the org.eclipse.osgi... bundles
I understand these are "build-time" things, like @Component. So I assume there must be something included in Equinox/Eclipse PDE when there is an intent to support them.
In an eclipse 2019.09, I added osgi.cmpn-7.00.jar to my platform and then when annotating a servlet as follows:
@Component(service = Servlet.class)
@HttpWhiteboardServletPattern("/uploadFiles")
@HttpWhiteboardServletMultipart(fileSizeThreshold=1024*10)
public class FilesUploadServlet extends HttpServlet {
...
}
I get a component xml file:
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="activate" deactivate="deactivate" name="com.isencia.sherpa.web.servlet.FilesUploadServlet">
<service>
<provide interface="javax.servlet.Servlet"/>
</service>
<implementation class="com.isencia.sherpa.web.servlet.FilesUploadServlet"/>
</scr:component>
So it appears the @HttpWhiteboard... property annotations are not processed.
Any info on actual/planned support for this?
thanks
erwin
|
|
|
Powered by
FUDForum. Page generated in 0.02444 seconds