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


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Stop

Method level annotation that indicates a (no-param) method to be called on a component registered in the ComponentRegistry when the cache stops.

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

Optional Element Summary
 int priority
          Optional parameter which defines the order in which this method will be called when the ComponentRegistry moves to the STARTED state.
 

priority

public abstract int priority
Optional parameter which defines the order in which this method will be called when the ComponentRegistry moves to the STARTED state. Defaults to 10.

Returns:
execution priority
Since:
2.2.0
Default:
10


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