Class PropertiesGraphDao

  • All Implemented Interfaces:
    GraphDao, org.springframework.beans.factory.InitializingBean

    public class PropertiesGraphDao
    extends Object
    implements GraphDao, org.springframework.beans.factory.InitializingBean
    • Field Detail

      • DEFAULT_GRAPH_LIST_KEY

        public static final String DEFAULT_GRAPH_LIST_KEY
        Constant DEFAULT_GRAPH_LIST_KEY="reports"
        See Also:
        Constant Field Values
    • Constructor Detail

      • PropertiesGraphDao

        public PropertiesGraphDao()

        Constructor for PropertiesGraphDao.

    • Method Detail

      • loadProperties

        public void loadProperties​(String typeName,
                                   org.springframework.core.io.Resource resource)
                            throws IOException

        loadProperties

        Parameters:
        typeName - a String object.
        resource - a Resource object.
        Throws:
        IOException - if any.
      • loadProperties

        public void loadProperties​(String type,
                                   InputStream in)
                            throws IOException

        loadProperties

        Used exclusively by test code. Will ignore an "include.directory" because we don't have a resource/path to do any useful "relative" pathing to. Also anything loaded in this fashion will *not* have auto reloading on changes, because there's no underlying Resource/File to check against. Like, duh!
        Parameters:
        type - a String object.
        in - a InputStream object.
        Throws:
        IOException - if any.
      • loadAdhocProperties

        public void loadAdhocProperties​(String type,
                                        org.springframework.core.io.Resource resource)
                                 throws IOException

        createPrefabGraphType loadAdhocProperties

        Parameters:
        type - a String object.
        resource - a Resource object.
        Throws:
        IOException - if any.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws IOException

        afterPropertiesSet

        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        IOException - if any.
      • getAdhocConfigs

        protected Map<String,​org.springframework.core.io.Resource> getAdhocConfigs()

        getAdhocConfigs

        Returns:
        a Map object.
      • setAdhocConfigs

        public void setAdhocConfigs​(Map<String,​org.springframework.core.io.Resource> adhocConfigs)

        setAdhocConfigs

        Parameters:
        adhocConfigs - a Map object.
      • getPrefabConfigs

        protected Map<String,​org.springframework.core.io.Resource> getPrefabConfigs()

        getPrefabConfigs

        Returns:
        a Map object.
      • setPrefabConfigs

        public void setPrefabConfigs​(Map<String,​org.springframework.core.io.Resource> prefabConfigs)

        setPrefabConfigs

        Parameters:
        prefabConfigs - a Map object.