java.lang.AutoCloseable
public interface CustomDependencyProvider
extends java.lang.AutoCloseable
Modifier and Type | Method | Description |
---|---|---|
ExtensibleDependency |
createDependency(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 ExntensbileDependency
ExtensibleDependency . |
void |
init(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.
|
void init(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String cacheName) throws java.lang.Exception
parameters
- Parameters provided at the time of cache configuration.cacheName
- Name of the cache that initiated this instance.java.lang.Exception
ExtensibleDependency createDependency(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> dependencyParameters) throws java.lang.Exception
ExtensibleDependency
.
Provider can create instance of any class derived from either ExtensiblDependency ExtensibleDependency
or BulkExtensibleDependency BulkExtensibleDependency
key
- Cache keydependencyParameters
- Collection of parameters in key/value pair passed by application to create the instance of extensible dependencyExtensibleDependency
java.lang.Exception