This commit is contained in:
Janne Valkealahti
2020-09-06 09:45:07 +01:00
parent eea8f1f045
commit 4e4ed2fc38
12 changed files with 23 additions and 37 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2017 the original author or authors.
* Copyright 2017-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@
package org.springframework.statemachine.data.mongodb;
import org.springframework.statemachine.StateMachineContext;
import org.springframework.statemachine.data.mongodb.MongoDbRepositoryStateMachinePersist;
import org.springframework.statemachine.data.mongodb.MongoDbStateMachineRepository;
import org.springframework.statemachine.persist.AbstractPersistingStateMachineInterceptor;
import org.springframework.statemachine.persist.StateMachineRuntimePersister;
import org.springframework.statemachine.support.StateMachineInterceptor;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2019 the original author or authors.
* Copyright 2016-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -39,8 +39,6 @@ import org.springframework.statemachine.config.builders.StateMachineConfiguratio
import org.springframework.statemachine.config.builders.StateMachineStateConfigurer;
import org.springframework.statemachine.config.builders.StateMachineTransitionConfigurer;
import org.springframework.statemachine.data.AbstractRepositoryTests;
import org.springframework.statemachine.data.mongodb.MongoDbPersistingStateMachineInterceptor;
import org.springframework.statemachine.data.mongodb.MongoDbStateMachineRepository;
import org.springframework.statemachine.persist.StateMachineRuntimePersister;
import org.springframework.statemachine.transition.TransitionKind;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2019 the original author or authors.
* Copyright 2016-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -15,7 +15,6 @@
*/
package org.springframework.statemachine.data.mongodb;
import org.junit.rules.TestRule;
import org.junit.rules.TestWatcher;
import org.junit.runner.Description;
import org.junit.runners.model.Statement;
@@ -28,7 +27,7 @@ import org.springframework.util.SocketUtils;
* @author Janne Valkealahti
*
*/
public class MongoDbRule extends TestWatcher implements TestRule {
public class MongoDbRule extends TestWatcher {
@Override
public Statement apply(Statement base, Description description) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2017 the original author or authors.
* Copyright 2017-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@
package org.springframework.statemachine.data.redis;
import org.springframework.statemachine.StateMachineContext;
import org.springframework.statemachine.data.redis.RedisRepositoryStateMachinePersist;
import org.springframework.statemachine.data.redis.RedisStateMachineRepository;
import org.springframework.statemachine.persist.AbstractPersistingStateMachineInterceptor;
import org.springframework.statemachine.persist.StateMachineRuntimePersister;
import org.springframework.statemachine.support.StateMachineInterceptor;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2019 the original author or authors.
* Copyright 2016-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -60,8 +60,7 @@ import reactor.core.publisher.Mono;
* @author Janne Valkealahti
*
*/
public class RepositoryStateMachineModelFactory extends AbstractStateMachineModelFactory<String, String>
implements StateMachineModelFactory<String, String> {
public class RepositoryStateMachineModelFactory extends AbstractStateMachineModelFactory<String, String> {
private final StateRepository<? extends RepositoryState> stateRepository;
private final TransitionRepository<? extends RepositoryTransition> transitionRepository;
@@ -95,13 +94,13 @@ public class RepositoryStateMachineModelFactory extends AbstractStateMachineMode
subStateMachineModel = build(submachineId);
}
Collection<Function<StateContext<String, String>, Mono<Void>>> stateActions =
Collection<Function<StateContext<String, String>, Mono<Void>>> stateActions =
loadStateActionsFromRepositoryState(s.getStateActions());
Collection<Function<StateContext<String, String>, Mono<Void>>> entryActions =
Collection<Function<StateContext<String, String>, Mono<Void>>> entryActions =
loadStateActionsFromRepositoryState(s.getEntryActions());
Collection<Function<StateContext<String, String>, Mono<Void>>> exitActions =
Collection<Function<StateContext<String, String>, Mono<Void>>> exitActions =
loadStateActionsFromRepositoryState(s.getExitActions());
RepositoryState parentState = s.getParentState();