Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Specify packages to scan for annotations during startup

Hi Robert,

So you're saying that these annotated classes are within a
real/virtual WEB-INF/classes and the problem is that the scanner is
scanning all of your classes and you'd like to cut down the scan time?
Or are you saying these classes live outside of WEB-INF/classes and
you'd like to somehow have them included for scanning?

At the moment there is no way to make the scanning of WEB-INF/classes
any more fine grained - you might like to open a bugzilla for that as
an enhancement request. For the other issue, jetty-9.0.6 onwards will
have a mechanism that ensures class dirs that are set as
WebAppContext.setExtraClasspath() will be considered for scanning *as
if* they are in WEB-INF/classes (jars on the extraclasspath will also
be scanned and participate in pattern matching with
org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern *as if* they
are in WEB-INF/lib).


On 6 September 2013 06:20, Robert Gr√ľndler <r.gruendler@xxxxxxxxx> wrote:
> Hi all,
> we've recently switched our application to use the servlet 3.0 specification
> and configure our apps programatically via Java. To minimize startup time
> during development, we'd like to point jetty to the class containing the
> javax.servlet.* servlet annotations.
> If i understand it correctly, that's where the
> org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern context attribute
> comes into play. However, most devs on our team are using IntelliJ for
> development, which deploys .class files to jetty rather than .jars.
> Is there a way to tell jetty which packages it should scan for annotations
> during startup rather than jars?
> regards
> robert
> _______________________________________________
> jetty-users mailing list
> jetty-users@xxxxxxxxxxx

Jan Bartel <janb@xxxxxxxxxxx>
'Expert Jetty/CometD developer,production,operations advice'

Back to the top