@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface GridCacheNameResource
GridCacheConfiguration.getName() method.
Cache name can be injected into components provided in the GridCacheConfiguration,
if GridCacheNameResource annotation is used in another classes it is no-op.
Here is how injection would typically happen:
public class MyCacheStore implements GridCacheStore {
...
@GridCacheNameResource
private String cacheName;
...
}
or
public class MyCacheStore implements GridCacheStore {
...
private String cacheName;
...
@GridCacheNameResource
public void setCacheName(String cacheName) {
this.cacheName = cacheName;
}
...
}
See GridCacheConfiguration.getName() for cache configuration details.
Core Products
:
Data Grid ver. 6.0.2,
Streaming ver. 6.0.2
Accelerators
:
Hadoop Accelerator ver. 6.0.2
Release Date
:
March 24 2014