com.github.dandelion.datatables.core.generator.javascript
Class StandardJavascriptGenerator

java.lang.Object
  extended by com.github.dandelion.datatables.core.generator.javascript.StandardJavascriptGenerator
All Implemented Interfaces:
com.github.dandelion.core.asset.locator.impl.DelegatedContent, JavascriptGenerator

public class StandardJavascriptGenerator
extends Object
implements JavascriptGenerator

Standard implementation of the JavascriptGenerator.

This implementation can aggregate multiple JsResource before returning the generated content to Dandelion.

Since:
0.10.0
Author:
Thibault Duchateau

Field Summary
 
Fields inherited from interface com.github.dandelion.datatables.core.generator.javascript.JavascriptGenerator
INDENTATION, NEWLINE
 
Constructor Summary
StandardJavascriptGenerator()
           
 
Method Summary
 void addResource(JsResource jsResource)
          Transfer the data from the JsResource to the different String builders (buffer).
 String getContent(javax.servlet.http.HttpServletRequest request)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardJavascriptGenerator

public StandardJavascriptGenerator()
Method Detail

addResource

public void addResource(JsResource jsResource)
Transfer the data from the JsResource to the different String builders (buffer).

Specified by:
addResource in interface JavascriptGenerator
Parameters:
jsResource - The web resource to use to generate Javascript content.

getContent

public String getContent(javax.servlet.http.HttpServletRequest request)

Specified by:
getContent in interface com.github.dandelion.core.asset.locator.impl.DelegatedContent


Copyright © 2013–2014 Dandelion Project. All rights reserved.