public class LayerBuilder extends Object
ModuleBuildFuture
s into the response stream.Modifier and Type | Method and Description |
---|---|
protected void |
addTransportContribution(IHttpTransport.LayerContributionType type,
Object arg)
Appends the layer contribution specified by
type
(contributed by the transport) to the string buffer. |
protected List<ModuleBuildFuture> |
collectFutures(com.ibm.jaggr.core.impl.layer.ModuleList moduleList,
javax.servlet.http.HttpServletRequest request)
Dispatch the modules specified in the request to the module builders and
collect the build futures returned by the builders into the returned
list.
|
protected String |
dependencyExpansionLogging(DependencyList depList) |
protected String |
getSourcesMappingEpilogue()
Returns the source mapping epilogue for the layer that gets added to the end of the response.
|
protected boolean |
hasErrors()
Returns true if any of the module builds indicated an error
|
protected String |
notifyLayerListeners(ILayerListener.EventType type,
javax.servlet.http.HttpServletRequest request,
IModule module)
Calls the registered layer listeners.
|
protected void |
processReader(IModule module,
ModuleBuildReader reader)
Adds the content from
reader , together with any transport contributions,
to the response aggregation. |
protected String getSourcesMappingEpilogue()
protected boolean hasErrors()
protected void processReader(IModule module, ModuleBuildReader reader) throws IOException
reader
, together with any transport contributions,
to the response aggregation.module
- The module idreader
- The module build readerIOException
protected void addTransportContribution(IHttpTransport.LayerContributionType type, Object arg) throws IOException
type
(contributed by the transport) to the string buffer.type
- The layer contribution typearg
- The argument value (see
IHttpTransport.contributeLoaderExtensionJavaScript(String)
IOException
protected List<ModuleBuildFuture> collectFutures(com.ibm.jaggr.core.impl.layer.ModuleList moduleList, javax.servlet.http.HttpServletRequest request) throws IOException
moduleList
- The list of modules in the layerrequest
- The request objectModuleBuildFuture
objects.IOException
protected String notifyLayerListeners(ILayerListener.EventType type, javax.servlet.http.HttpServletRequest request, IModule module) throws IOException
type
- The type of notification (begin or end)request
- The request object.module
- the associated module reference, depending on the value of type
.IOException
protected String dependencyExpansionLogging(DependencyList depList) throws IOException
IOException
Copyright © 2011-2015 IBM. All Rights Reserved.