Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Javadoc improvement

  • Loading branch information...
commit db8da0735c0dd13b93dfbb74f74db8f134948ddc 1 parent e29b052
@skuro authored
View
42 ...main/java/org/springframework/extensions/webscripts/processor/ClojureScriptProcessor.java
@@ -24,18 +24,18 @@
private Map<String, WebScript> compiledWebScripts =
Collections.synchronizedMap(new HashMap<String,WebScript>());
- /* (non-Javadoc)
- * @see org.springframework.extensions.surf.core.processor.Processor#getExtension()
- */
-
+ /**
+ * {@inheritDoc}
+ * @return "clj"
+ */
public String getExtension() {
return "clj";
}
- /* (non-Javadoc)
- * @see org.springframework.extensions.surf.core.processor.Processor#getName()
+ /**
+ * {@inheritDoc}
+ * @return "clojure"
*/
-
public String getName() {
return "clojure";
}
@@ -62,17 +62,16 @@ protected WebScript compileClojureScript(InputStream is, Writer out, Map<String,
}
}
- /* (non-Javadoc)
- * @see org.springframework.extensions.webscripts.ScriptProcessor#findScript(java.lang.String)
- */
-
+ /**
+ * {@inheritDoc}
+ */
public ScriptContent findScript(String path) {
// TODO: maybe check path against (ns)?
return getScriptLoader().getScript(path);
}
- /* (non-Javadoc)
- * @see org.springframework.extensions.webscripts.ScriptProcessor#executeScript(java.lang.String, java.util.Map)
+ /**
+ * {@inheritDoc}
*/
public Object executeScript(String path, Map<String, Object> model) {
ScriptContent scriptContent = findScript(path);
@@ -83,10 +82,9 @@ public Object executeScript(String path, Map<String, Object> model) {
return executeScript(scriptContent, model);
}
- /* (non-Javadoc)
- * @see org.springframework.extensions.webscripts.ScriptProcessor#executeScript(org.springframework.extensions.webscripts.ScriptContent, java.util.Map)
+ /**
+ * {@inheritDoc}
*/
-
public Object executeScript(ScriptContent scriptContent, Map<String, Object> model) {
String path = scriptContent.getPath();
WebScript webscript = this.compiledWebScripts.get(path);
@@ -110,18 +108,16 @@ public Object executeScript(ScriptContent scriptContent, Map<String, Object> mod
return webscript.run(scriptContent.getInputStream(), null, model);
}
- /* (non-Javadoc)
- * @see org.springframework.extensions.webscripts.ScriptProcessor#unwrapValue(java.lang.Object)
- */
-
+ /**
+ * {@inheritDoc}
+ */
public Object unwrapValue(Object value) {
return value;
}
- /* (non-Javadoc)
- * @see org.springframework.extensions.webscripts.ScriptProcessor#reset()
+ /**
+ * {@inheritDoc}
*/
-
public void reset() {
init();
this.compiledWebScripts = Collections.synchronizedMap(new HashMap<String,WebScript>());
Please sign in to comment.
Something went wrong with that request. Please try again.