public class CreateConfigurationTasks extends Object
ModuleVersionHandler
to create default configurations for your caches.
setInstallOrUpdateTasks(CreateConfigurationTasks.createConfigurationTasks(<classes with @CacheResult annotations>...));
| Constructor and Description |
|---|
CreateConfigurationTasks() |
| Modifier and Type | Method and Description |
|---|---|
static List<CreateCacheConfigurationTask> |
createConfigurationTasks(Class<?>... beans)
Generates tasks to create (default) configuration for the caches provided by a list of beans.
|
protected static String |
getCacheName(Method m,
javax.cache.annotation.CacheResult cr) |
static javax.jcr.Node |
getPath(javax.jcr.Session session)
Returns the path which contains the cache configuration
|
public static javax.jcr.Node getPath(javax.jcr.Session session)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic static List<CreateCacheConfigurationTask> createConfigurationTasks(Class<?>... beans)
DefaultCacheSettings. You can set this annotation on your methods to provide different defaults.
If the annotation is missing altogether the defaults of it are still used.Copyright © 2016–2022. All rights reserved.