@EngineService(injectDefaultToWorkflow=false, isCoreEngine=true) public class StaticEngine extends NodeEngine
This engine should be used for non-dynamic WUIC features. Actually, static means that WUIC is not able to access nuts. This engine considers that nuts have been already processed and that their links are stored in a file inside the classpath. This file should be generated at build time with the maven plugin.
When this engine is called, it just looks for nuts paths and then return it. If file that contains nuts path has not been found, then an exception is thrown. Consequently, the engine won't call any next engine in the chain of responsibility.
Modifier and Type | Field and Description |
---|---|
static Pattern |
PATTERN_KEY_VALUE
Pattern that matches a key/value pair pattern.
|
static String |
STATIC_WORKFLOW_FILE
File pattern.
|
Constructor and Description |
---|
StaticEngine()
Builds a new instance.
|
Modifier and Type | Method and Description |
---|---|
EngineType |
getEngineType()
Gets the type of engine.
|
List<NutType> |
getNutTypes()
Gets the all
types supported by this engine. |
protected List<ConvertibleNut> |
internalParse(EngineRequest request)
Internal method that parses eventually called by
NodeEngine.parse(EngineRequest) method during its invocation. |
Boolean |
works()
Returns a flag indicating if the engine is configured to do something or not.
|
callNextEngine, chain, getNext, getPrevious, parse, setNext
public static final String STATIC_WORKFLOW_FILE
public static final Pattern PATTERN_KEY_VALUE
@ConfigConstructor public StaticEngine()
Builds a new instance.
protected List<ConvertibleNut> internalParse(EngineRequest request) throws WuicException
Internal method that parses eventually called by NodeEngine.parse(EngineRequest)
method during its invocation.
internalParse
in class Engine
request
- the request with files to parseWuicException
- if any kind of error occurspublic List<NutType> getNutTypes()
Gets the all types
supported by this engine.
getNutTypes
in class NodeEngine
NutType
public EngineType getEngineType()
Gets the type of engine.
getEngineType
in class Engine
Copyright © 2012-2015. All Rights Reserved.