Class ReflectionHelper


  • public class ReflectionHelper
    extends Object
    • Field Detail

      • log

        protected static final org.apache.logging.log4j.Logger log
    • Constructor Detail

      • ReflectionHelper

        public ReflectionHelper()
    • Method Detail

      • getModulesLoaded

        public static Set<ModuleInfo> getModulesLoaded()
      • registerMngtRestApiHandler

        public static void registerMngtRestApiHandler​(org.elasticsearch.common.settings.Settings settings)
      • instantiateMngtRestApiHandler

        public static Collection<org.elasticsearch.rest.RestHandler> instantiateMngtRestApiHandler​(org.elasticsearch.common.settings.Settings settings,
                                                                                                   Path configPath,
                                                                                                   org.elasticsearch.rest.RestController restController,
                                                                                                   org.elasticsearch.client.Client localClient,
                                                                                                   AdminDNs adminDns,
                                                                                                   ConfigurationRepository cr,
                                                                                                   StaticSgConfig staticSgConfig,
                                                                                                   org.elasticsearch.cluster.service.ClusterService cs,
                                                                                                   PrincipalExtractor principalExtractor,
                                                                                                   PrivilegesEvaluator evaluator,
                                                                                                   org.elasticsearch.threadpool.ThreadPool threadPool,
                                                                                                   AuditLog auditlog)
      • instantiateRestApiHandler

        public static Collection<org.elasticsearch.rest.RestHandler> instantiateRestApiHandler​(String className,
                                                                                               org.elasticsearch.common.settings.Settings settings,
                                                                                               Path configPath,
                                                                                               org.elasticsearch.rest.RestController restController,
                                                                                               org.elasticsearch.client.Client localClient,
                                                                                               AdminDNs adminDns,
                                                                                               ConfigurationRepository cr,
                                                                                               StaticSgConfig staticSgConfig,
                                                                                               org.elasticsearch.cluster.service.ClusterService cs,
                                                                                               PrincipalExtractor principalExtractor,
                                                                                               PrivilegesEvaluator evaluator,
                                                                                               org.elasticsearch.threadpool.ThreadPool threadPool,
                                                                                               AuditLog auditlog)
      • instantiateRestApiHandler

        public static Collection<org.elasticsearch.rest.RestHandler> instantiateRestApiHandler​(String className,
                                                                                               org.elasticsearch.common.settings.Settings settings,
                                                                                               Path configPath,
                                                                                               org.elasticsearch.rest.RestController restController,
                                                                                               org.elasticsearch.client.Client localClient,
                                                                                               AdminDNs adminDns,
                                                                                               ConfigurationRepository cr,
                                                                                               org.elasticsearch.cluster.service.ClusterService cs,
                                                                                               org.elasticsearch.script.ScriptService scriptService,
                                                                                               org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry,
                                                                                               PrincipalExtractor principalExtractor,
                                                                                               PrivilegesEvaluator evaluator,
                                                                                               org.elasticsearch.threadpool.ThreadPool threadPool,
                                                                                               AuditLog auditlog)
      • instantiateDlsFlsConstructor

        public static Constructor instantiateDlsFlsConstructor()
      • instantiateAuditLog

        public static AuditLog instantiateAuditLog​(org.elasticsearch.common.settings.Settings settings,
                                                   Path configPath,
                                                   org.elasticsearch.client.Client localClient,
                                                   org.elasticsearch.threadpool.ThreadPool threadPool,
                                                   org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver,
                                                   org.elasticsearch.cluster.service.ClusterService clusterService)
      • instantiatePrivilegesInterceptorImpl

        public static PrivilegesInterceptor instantiatePrivilegesInterceptorImpl​(org.elasticsearch.cluster.metadata.IndexNameExpressionResolver resolver,
                                                                                 org.elasticsearch.cluster.service.ClusterService clusterService,
                                                                                 org.elasticsearch.client.Client localClient,
                                                                                 org.elasticsearch.threadpool.ThreadPool threadPool)
      • instantiateAAA

        public static <T> T instantiateAAA​(String clazz,
                                           org.elasticsearch.common.settings.Settings settings,
                                           Path configPath,
                                           boolean checkEnterprise)
      • instantiateInterClusterRequestEvaluator

        public static InterClusterRequestEvaluator instantiateInterClusterRequestEvaluator​(String clazz,
                                                                                           org.elasticsearch.common.settings.Settings settings)
      • isEnterpriseAAAModule

        public static boolean isEnterpriseAAAModule​(String clazz)
      • addLoadedModule

        public static boolean addLoadedModule​(Class<?> clazz)
      • init

        public static void init​(boolean enterpriseModulesEnabled)