added lifecycle provider to cacheservice
@@ -4,6 +4,7 @@ import org.radargun.Service;
import org.radargun.logging.Log;
import org.radargun.logging.LogFactory;
import org.radargun.traits.Lifecycle;
+import org.radargun.traits.ProvidesTrait;
@Service(doc = EchoService.SERVICE_DESCRIPTION)
public class EchoService implements Lifecycle {
@@ -24,6 +25,11 @@ public class EchoService implements Lifecycle {
log.infof("Echo service stopped");
}
+ @ProvidesTrait
+ public Lifecycle createLifecycle() {
+ return this;
+ }
+
@Override
public boolean isRunning() {
return started;
