core/src/main/java/apoc/ApocConfig.java
protected void loadConfiguration() {
        try {

            URL resource = getClass().getClassLoader().getResource("apoc-config.xml");
            log.info("loading apoc meta config from %s", resource.toString());
            CombinedConfigurationBuilder builder = new CombinedConfigurationBuilder()
                    .configure(new Parameters().fileBased().setURL(resource));
            config = builder.getConfiguration();

            // copy apoc settings from neo4j.conf for legacy support
            neo4jConfig.getDeclaredSettings().entrySet().stream()
                    .filter(e -> !config.containsKey(e.getKey()))
                    .filter(e -> e.getKey().startsWith("apoc."))
                    .forEach(e -> {
                        log.info("setting from neo4j.conf: " + e.getKey() + "=" + neo4jConfig.get(e.getValue()));
                        config.setProperty(e.getKey(), neo4jConfig.get(e.getValue()));
                    });

            addDbmsDirectoriesMetricsSettings();
            for (Setting s : NEO4J_DIRECTORY_CONFIGURATION_SETTING_NAMES) {
                Object value = neo4jConfig.get(s);
                if (value!=null) {
                    config.setProperty(s.name(), value.toString());
                }
            }

            boolean allowFileUrls = neo4jConfig.get(GraphDatabaseSettings.allow_file_urls);
            config.setProperty(APOC_IMPORT_FILE_ALLOW__READ__FROM__FILESYSTEM, allowFileUrls);
            
            // todo - evaluate default timezone here [maybe is reusable], otherwise through db.execute('CALL dbms.listConfig()')
            final Setting<ZoneId> db_temporal_timezone = GraphDatabaseSettings.db_temporal_timezone;
            config.setProperty(db_temporal_timezone.name(), neo4jConfig.get(db_temporal_timezone));

            initLogging();
        } catch (ConfigurationException e) {
            throw new RuntimeException(e);
        }
    }
/**
     * use apache commons to load configuration
     * classpath:/apoc-config.xml contains a description where to load configuration from
     */
use apache commons to load configuration
classpath:/apoc-config.xml contains a description where to load configuration from
use apache commons to load configuration classpath : / apoc - config . xml contains a description where to load configuration from
protected void loadConfiguration() {
        try {
            URL resource = getClass().getClassLoader().getResource("apoc-config.xml");
            log.info("loading apoc meta config from %s", resource.toString());
            CombinedConfigurationBuilder builder = new CombinedConfigurationBuilder()
                    .configure(new Parameters().fileBased().setURL(resource));
            config = builder.getConfiguration();
            neo4jConfig.getDeclaredSettings().entrySet().stream()
                    .filter(e -> !config.containsKey(e.getKey()))
                    .filter(e -> e.getKey().startsWith("apoc."))
                    .forEach(e -> {
                        log.info("setting from neo4j.conf: " + e.getKey() + "=" + neo4jConfig.get(e.getValue()));
                        config.setProperty(e.getKey(), neo4jConfig.get(e.getValue()));
                    });
            addDbmsDirectoriesMetricsSettings();
            for (Setting s : NEO4J_DIRECTORY_CONFIGURATION_SETTING_NAMES) {
                Object value = neo4jConfig.get(s);
                if (value!=null) {
                    config.setProperty(s.name(), value.toString());
                }
            }
            boolean allowFileUrls = neo4jConfig.get(GraphDatabaseSettings.allow_file_urls);
            config.setProperty(APOC_IMPORT_FILE_ALLOW__READ__FROM__FILESYSTEM, allowFileUrls);
            final Setting<ZoneId> db_temporal_timezone = GraphDatabaseSettings.db_temporal_timezone;
            config.setProperty(db_temporal_timezone.name(), neo4jConfig.get(db_temporal_timezone));
            initLogging();
        } catch (ConfigurationException e) {
            throw new RuntimeException(e);
        }
    }
protected void loadConfiguration ( ) { try { URL resource = getClass ( ) . getClassLoader ( ) . getResource ( "apoc-config.xml" ) ; log . info ( "loading apoc meta config from %s" , resource . toString ( ) ) ; CombinedConfigurationBuilder builder = new CombinedConfigurationBuilder ( ) . configure ( new Parameters ( ) . fileBased ( ) . setURL ( resource ) ) ; config = builder . getConfiguration ( ) ; neo4jConfig . getDeclaredSettings ( ) . entrySet ( ) . stream ( ) . filter ( e -> ! config . containsKey ( e . getKey ( ) ) ) . filter ( e -> e . getKey ( ) . startsWith ( "apoc." ) ) . forEach ( e -> { log . info ( "setting from neo4j.conf: " + e . getKey ( ) + "=" + neo4jConfig . get ( e . getValue ( ) ) ) ; config . setProperty ( e . getKey ( ) , neo4jConfig . get ( e . getValue ( ) ) ) ; } ) ; addDbmsDirectoriesMetricsSettings ( ) ; for ( Setting s : NEO4J_DIRECTORY_CONFIGURATION_SETTING_NAMES ) { Object value = neo4jConfig . get ( s ) ; if ( value != null ) { config . setProperty ( s . name ( ) , value . toString ( ) ) ; } } boolean allowFileUrls = neo4jConfig . get ( GraphDatabaseSettings . allow_file_urls ) ; config . setProperty ( APOC_IMPORT_FILE_ALLOW__READ__FROM__FILESYSTEM , allowFileUrls ) ; final Setting < ZoneId > db_temporal_timezone = GraphDatabaseSettings . db_temporal_timezone ; config . setProperty ( db_temporal_timezone . name ( ) , neo4jConfig . get ( db_temporal_timezone ) ) ; initLogging ( ) ; } catch ( ConfigurationException e ) { throw new RuntimeException ( e ) ; } }
use apache commons to load configuration
 classpath:/apoc-config.xml contains a description where to load configuration from
use apache commons to load configuration classpath : / apoc - config . xml contains a description where to load configuration from
// copy apoc settings from neo4j.conf for legacy support // todo - evaluate default timezone here [maybe is reusable], otherwise through db.execute('CALL dbms.listConfig()')