Class PropertiesGraphDao

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

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

      • DEFAULT_GRAPH_LIST_KEY

        public static final java.lang.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​(java.lang.String typeName,
                                   org.springframework.core.io.Resource resource)
                            throws java.io.IOException

        loadProperties

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

        public void loadProperties​(java.lang.String type,
                                   java.io.InputStream in)
                            throws java.io.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:
        java.io.IOException - if any.
      • loadAdhocProperties

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

        createPrefabGraphType loadAdhocProperties

        Parameters:
        type - a String object.
        resource - a Resource object.
        Throws:
        java.io.IOException - if any.
      • loadAdhocProperties

        public void loadAdhocProperties​(java.lang.String type,
                                        java.io.InputStream in)
                                 throws java.io.IOException

        loadAdhocProperties

        Parameters:
        type - a String object.
        in - a InputStream object.
        Throws:
        java.io.IOException - if any.
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.io.IOException

        afterPropertiesSet

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

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

        getAdhocConfigs

        Returns:
        a Map object.
      • setAdhocConfigs

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

        setAdhocConfigs

        Parameters:
        adhocConfigs - a Map object.
      • getPrefabConfigs

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

        getPrefabConfigs

        Returns:
        a Map object.
      • setPrefabConfigs

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

        setPrefabConfigs

        Parameters:
        prefabConfigs - a Map object.