org.jboss.cache.factories.annotations
Annotation Type NonVolatile


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface NonVolatile

This annotation is used for components that will be registered in the ComponentRegistry, that are resilient to changes in configuration. Examples are the CacheSPI implementation used, which does not change regardless of the configuration. Components such as the LockManager, though, should never be marked as @NonVolatile since based on the configuration, different lock manager implementations may be selected. LockManager is, hence, not resilient to changes in the configuration.

Since:
2.2.0
Author:
Manik Surtani (manik AT jboss DOT org)



Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.