Interface CustomDependencyProvider
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface CustomDependencyProvider extends java.lang.AutoCloseableThis interface provides implementation for the instance of ExtensibleDependency on the server-side.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtensibleDependencycreateDependency(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> dependencyParameters)This method is called on server side to create the instance of ExntensbileDependencyExtensibleDependency.voidinit(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String cacheName)Initializes the CustomDependencyProvider instance with parameters provided at the time of cache configuration.
-
-
-
Method Detail
-
init
void init(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String cacheName) throws java.lang.ExceptionInitializes the CustomDependencyProvider instance with parameters provided at the time of cache configuration.- Parameters:
parameters- Collection of parameters provided at the time of cache configuration.cacheName- Name of the cache that initiated this instance.- Throws:
java.lang.Exception
-
createDependency
ExtensibleDependency createDependency(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> dependencyParameters) throws java.lang.Exception
This method is called on server side to create the instance of ExntensbileDependencyExtensibleDependency. Provider can create instance of any class derived from either ExtensiblDependencyExtensibleDependencyor BulkExtensibleDependencyBulkExtensibleDependency- Parameters:
key- Cache key.dependencyParameters- Collection of parameters in key/value pair passed by application to create the instance of Extensible Dependency.- Returns:
- Instance of ExtensibleDependency
ExtensibleDependency - Throws:
java.lang.Exception
-
-