Class OpenSearchClientFactoryBean
java.lang.Object
org.apache.syncope.ext.opensearch.client.OpenSearchClientFactoryBean
- All Implemented Interfaces:
DisposableBean
,FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
public class OpenSearchClientFactoryBean
extends Object
implements FactoryBean<org.opensearch.client.opensearch.OpenSearchClient>, DisposableBean
Spring
FactoryBean
for getting the OpenSearchClient
singleton instance.-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
org.opensearch.client.opensearch.OpenSearchClient
Class
<?> void
setApiKeyId
(String apiKeyId) void
setApiKeySecret
(String apiKeySecret) void
setPassword
(String password) void
setServiceToken
(String serviceToken) void
setUsername
(String username) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.FactoryBean
isSingleton
-
Constructor Details
-
OpenSearchClientFactoryBean
-
-
Method Details
-
setUsername
-
setPassword
-
getServiceToken
-
setServiceToken
-
getApiKeyId
-
setApiKeyId
-
getApiKeySecret
-
setApiKeySecret
-
getObject
public org.opensearch.client.opensearch.OpenSearchClient getObject()- Specified by:
getObject
in interfaceFactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<org.opensearch.client.opensearch.OpenSearchClient>
-
destroy
- Specified by:
destroy
in interfaceDisposableBean
- Throws:
Exception
-