All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.factories.annotations.SurvivesRestarts Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.factories.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * This annotation is used for components that will be registered in the {@link org.infinispan.factories.ComponentRegistry},
 * that are meant to be retained in the component registry even after the component registry is stopped.  Components
 * annotated as such would not have to be recreated and rewired between stopping and starting a component registry.
 * 
* As a rule of thumb though, use of this annotation on components should be avoided, since resilient components are * retained even after a component registry is stopped and consume resources. Only components necessary for and critical * to bootstrapping and restarting the component registry should be annotated as such. * * @author Manik Surtani ([email protected]) * @since 4.0 */ @Retention(RetentionPolicy.CLASS) @Target(ElementType.TYPE) @Inherited public @interface SurvivesRestarts { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy