INNER CODE UNIT · Java

computeIndexNames

dadoonet/spring-elasticsearch · src/main/java/fr/pilato/spring/elasticsearch/ElasticsearchClientFactoryBean.java:441

    static String[] computeIndexNames(boolean autoscan, String[] resources, String classpathRoot) {
        if (!autoscan) {
            logger.debug("Automatic discovery is disabled. Only static resources are used: {}", (Object) resources);
            return resources;
        }
        if (resources != null && resources.length > 0) {
            logger.debug("Resources are manually provided so we won't do any automatic discovery.");
            return resources;
        }

        if (logger.isDebugEnabled()) {
            logger.debug("Automatic discovery is activated. Looking for definition files in classpath under [{}].",
                    classpathRoot);
        }

        try {
            // Let's scan our resources
            return findIndexNames(classpathRoot).toArray(new String[0]);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…