http://docs.oracle.com/javaee/6/api/javax/servlet/ServletContainerInitializer.html

"Implementations of this interface may be annotated with HandlesTypes,
in order to receive (at their onStartup(java.util.Set>,
javax.servlet.ServletContext) method) the Set of application classes
that implement, extend, or have been annotated with the class types
specified by the annotation."

Seems really clear to me ;)



Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau


2014-08-08 22:49 GMT+02:00 David Blevins <[email protected]>:
> On Aug 7, 2014, at 10:16 PM, Romain Manni-Bucau <[email protected]> wrote:
>
>>> Specifically, what JAX-RS functionality would we lose not using 
>>> findImplementations?  Last performance measurements I did, it doubled our 
>>> scan time and wasn't required to pass the TCK.
>>>
>>>
>>
>> Sorry was Servlet (too late answer ;)). @HandleTypes basically. We
>> have to support it by default and scanning it lazily just was making
>> us ridiculous.
>
> No worries on TooSleepyException :)
>
> From a Java EE API specification perspective, we haven't created any APIs 
> (outside CDI) that use anything other than 1) annotation discovery or 2) xml 
> or 3) programatic registration for component discovery.  So even saying 
> "@HandleTypes" isn't really clear.
>
> Can you elaborate?
>
>
> -David
>

Reply via email to