ar.com.jmfsg.documentation
Class DocumentationLoader

java.lang.Object
  extended by ar.com.jmfsg.documentation.DocumentationLoader
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

public class DocumentationLoader
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

Loads all DocumentationDescriptor with the actual documentation information.

Author:
jformoso

Constructor Summary
DocumentationLoader()
           
 
Method Summary
 void afterPropertiesSet()
           
 Map<String,String> getDictionary()
           
 Map<String,net.sf.json.JSONArray> getDocumentation()
           
 net.sf.json.JSONArray getDocumentationForModule(String prefix)
           
 net.sf.json.JSONObject getGeneralDoc()
           
 Map<String,net.sf.json.JSONObject> getGroupDocs()
           
 net.sf.json.JSONObject getRawDoc()
           
 Map<String,net.sf.json.JSONObject> getTags()
           
static String readAll(org.springframework.core.io.Resource res)
           
 void setApplicationContext(org.springframework.context.ApplicationContext ctx)
           
static void setGeneralProperty(String key, String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentationLoader

public DocumentationLoader()
Method Detail

getDocumentationForModule

public net.sf.json.JSONArray getDocumentationForModule(String prefix)

getDocumentation

public Map<String,net.sf.json.JSONArray> getDocumentation()

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

setGeneralProperty

public static void setGeneralProperty(String key,
                                      String value)

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

readAll

public static String readAll(org.springframework.core.io.Resource res)
                      throws IOException
Throws:
IOException

getGeneralDoc

public net.sf.json.JSONObject getGeneralDoc()

getRawDoc

public net.sf.json.JSONObject getRawDoc()

getDictionary

public Map<String,String> getDictionary()

getGroupDocs

public Map<String,net.sf.json.JSONObject> getGroupDocs()

getTags

public Map<String,net.sf.json.JSONObject> getTags()


Copyright © 2013. All Rights Reserved.