jawr-bundle-processor/src/main/java/net/jawr/web/bundle/processor/BundleProcessor.java
/**
	 * Initialize the servlets and returns only the list of Jawr servlets
	 * 
	 * @param servletDefinitions
	 *            the list of servlet definition
	 * @throws Exception
	 *             if an exception occurs
	 */
Initialize the servlets and returns only the list of Jawr servlets

@param servletDefinitions
the list of servlet definition
@throws Exception
if an exception occurs
Initialize the servlets and returns only the list of Jawr servlets @param servletDefinitions the list of servlet definition @throws Exception if an exception occurs
protected List<ServletDefinition> initServlets(
			List<ServletDefinition> servletDefinitions) throws Exception {
		Collections.sort(servletDefinitions);
		ThreadLocalJawrContext.setBundleProcessingAtBuildTime(true);
		List<ServletDefinition> jawrServletDefinitions = new ArrayList<ServletDefinition>();
		for (Iterator<ServletDefinition> iterator = servletDefinitions
				.iterator(); iterator.hasNext();) {
			ServletDefinition servletDefinition = (ServletDefinition) iterator
					.next();
			servletDefinition.initServlet();
			if (servletDefinition.isJawrServletDefinition()) {
				jawrServletDefinitions.add(servletDefinition);
			}
		}
		return jawrServletDefinitions;
	}
protected List < ServletDefinition > initServlets ( List < ServletDefinition > servletDefinitions ) throws Exception { Collections . sort ( servletDefinitions ) ; ThreadLocalJawrContext . setBundleProcessingAtBuildTime ( true ) ; List < ServletDefinition > jawrServletDefinitions = new ArrayList < ServletDefinition > ( ) ; for ( Iterator < ServletDefinition > iterator = servletDefinitions . iterator ( ) ; iterator . hasNext ( ) ; ) { ServletDefinition servletDefinition = ( ServletDefinition ) iterator . next ( ) ; servletDefinition . initServlet ( ) ; if ( servletDefinition . isJawrServletDefinition ( ) ) { jawrServletDefinitions . add ( servletDefinition ) ; } } return jawrServletDefinitions ; }
Initialize the servlets and returns only the list of Jawr servlets
Initialize the servlets and returns only the list of Jawr servlets
// Sort the list taking in account the load-on-startup attribute // Sets the Jawr context at "bundle processing at build time"