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 addDocumentationDescriptor(String beanName, DocumentationDescriptor documentationDescriptor)
           
 void addDocumentationListener(DocumentationListener listener)
           
 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()
           
 boolean hasDocumentationDescriptor(String beanName)
           
static String readAll(org.springframework.core.io.Resource res)
           
 void setApplicationContext(org.springframework.context.ApplicationContext ctx)
           
 
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()

hasDocumentationDescriptor

public boolean hasDocumentationDescriptor(String beanName)

addDocumentationDescriptor

public void addDocumentationDescriptor(String beanName,
                                       DocumentationDescriptor documentationDescriptor)

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

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()

addDocumentationListener

public void addDocumentationListener(DocumentationListener listener)


Copyright © 2013. All Rights Reserved.