Class SearchGuardComponentRegistry<ComponentType>
- java.lang.Object
-
- com.floragunn.searchguard.modules.SearchGuardComponentRegistry<ComponentType>
-
public class SearchGuardComponentRegistry<ComponentType> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSearchGuardComponentRegistry.ComponentFactory<ComponentType>
-
Constructor Summary
Constructors Constructor Description SearchGuardComponentRegistry(Class<ComponentType> componentType)SearchGuardComponentRegistry(Class<ComponentType> componentType, Function<ComponentType,String> nameFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchGuardComponentRegistry<ComponentType>add(SearchGuardComponentRegistry<ComponentType> registry)SearchGuardComponentRegistry<ComponentType>add(String name, SearchGuardComponentRegistry.ComponentFactory<? extends ComponentType> instance)SearchGuardComponentRegistry<ComponentType>add(String name, Class<? extends ComponentType> clazz)SearchGuardComponentRegistry<ComponentType>add(String name, String className)SearchGuardComponentRegistry<ComponentType>add(List<String> names, SearchGuardComponentRegistry.ComponentFactory<? extends ComponentType> instance)voidaddComponentsWithMatchingType(Collection<?> components)ObjectgetAny(String name)StringgetClassName(String clazzOrShortcut)ComponentTypegetInstance(String clazzOrShortcut, org.elasticsearch.common.settings.Settings settings, Path configPath)booleanhas(String name)SearchGuardComponentRegistry<ComponentType>seal()
-
-
-
Constructor Detail
-
SearchGuardComponentRegistry
public SearchGuardComponentRegistry(Class<ComponentType> componentType)
-
SearchGuardComponentRegistry
public SearchGuardComponentRegistry(Class<ComponentType> componentType, Function<ComponentType,String> nameFunction)
-
-
Method Detail
-
addComponentsWithMatchingType
public void addComponentsWithMatchingType(Collection<?> components)
-
add
public SearchGuardComponentRegistry<ComponentType> add(SearchGuardComponentRegistry<ComponentType> registry)
-
seal
public SearchGuardComponentRegistry<ComponentType> seal()
-
add
public SearchGuardComponentRegistry<ComponentType> add(String name, SearchGuardComponentRegistry.ComponentFactory<? extends ComponentType> instance)
-
add
public SearchGuardComponentRegistry<ComponentType> add(List<String> names, SearchGuardComponentRegistry.ComponentFactory<? extends ComponentType> instance)
-
add
public SearchGuardComponentRegistry<ComponentType> add(String name, Class<? extends ComponentType> clazz)
-
add
public SearchGuardComponentRegistry<ComponentType> add(String name, String className)
-
has
public boolean has(String name)
-
getInstance
public ComponentType getInstance(String clazzOrShortcut, org.elasticsearch.common.settings.Settings settings, Path configPath)
-
-