public final class ModuleBuild extends Object
IModuleBuilder.build(String, IResource, HttpServletRequest, List)
.Constructor and Description |
---|
ModuleBuild(Object buildOutput)
Convenience constructor utilizing a null cache key generator and no
error.
|
ModuleBuild(Object buildOutput,
List<ICacheKeyGenerator> keyGens,
String error)
Full arguments constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addExtraModule(String moduleId)
Adds the specified module to the list of extra modules.
|
Object |
getBuildOutput()
Returns the built (processed and minified) output for this request,
as an AMD module string.
|
List<ICacheKeyGenerator> |
getCacheKeyGenerators()
Returns the non-provisional cache key generator for this module.
|
String |
getErrorMessage() |
List<String> |
getExtraModules()
Returns the list of additional modules that should be included ahead
of this module build in the layer
|
boolean |
isError()
Returns true if this build is an error response.
|
public ModuleBuild(Object buildOutput)
buildOutput
- The built output for the modulepublic ModuleBuild(Object buildOutput, List<ICacheKeyGenerator> keyGens, String error)
buildOutput
- The build output for the modulekeyGens
- Array of cache key generators. If a non-provisional cache key
generator was supplied in the preceding call for this same
request to
IModuleBuilder.getCacheKeyGenerators(IAggregator)
, or
the built output for the module is invariant with regard to
the request, then keyGens
may be null.error
- If not null, then a message describing the build errorpublic Object getBuildOutput()
public List<ICacheKeyGenerator> getCacheKeyGenerators()
IModuleBuilder.getCacheKeyGenerators(IAggregator)
returned a provisional cache key generator for the same request.public boolean isError()
public String getErrorMessage()
public void addExtraModule(String moduleId)
Extra modules are included in the layer build that contains this module build.
moduleId
- The module id to add to the before listCopyright © 2011-2015 IBM. All Rights Reserved.