Refactor boot class packages

- Should not have any breaking changes, just
  wanted to have a better package structure.
- Fixes #293
This commit is contained in:
Janne Valkealahti
2016-12-10 17:43:19 +00:00
parent 784e446619
commit 3df7f6ea96
11 changed files with 20 additions and 9 deletions

View File

@@ -36,6 +36,9 @@ public class StateMachineProperties {
this.monitor = monitor;
}
/**
* Config props for "spring.statemachine.monitor".
*/
public static class StateMachineMonitoringProperties {
private boolean enabled = false;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.statemachine.boot;
package org.springframework.statemachine.boot.autoconfigure;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.boot.actuate.metrics.CounterService;
@@ -25,6 +25,8 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.statemachine.boot.StateMachineProperties;
import org.springframework.statemachine.boot.support.BootStateMachineMonitor;
/**
* {@link EnableAutoConfiguration Auto-configuration} for Spring Statemachine.

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.statemachine.boot;
package org.springframework.statemachine.boot.autoconfigure;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.statemachine.boot;
package org.springframework.statemachine.boot.autoconfigure;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.statemachine.boot;
package org.springframework.statemachine.boot.autoconfigure;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.statemachine.boot;
package org.springframework.statemachine.boot.support;
import java.util.HashMap;
import java.util.Map;

View File

@@ -1,7 +1,7 @@
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
org.springframework.statemachine.boot.StateMachineAutoConfiguration,\
org.springframework.statemachine.boot.StateMachineJpaRepositoriesAutoConfiguration,\
org.springframework.statemachine.boot.StateMachineRedisRepositoriesAutoConfiguration,\
org.springframework.statemachine.boot.StateMachineMongoDbRepositoriesAutoConfiguration
org.springframework.statemachine.boot.autoconfigure.StateMachineAutoConfiguration,\
org.springframework.statemachine.boot.autoconfigure.StateMachineJpaRepositoriesAutoConfiguration,\
org.springframework.statemachine.boot.autoconfigure.StateMachineRedisRepositoriesAutoConfiguration,\
org.springframework.statemachine.boot.autoconfigure.StateMachineMongoDbRepositoriesAutoConfiguration

View File

@@ -28,6 +28,8 @@ import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.statemachine.StateMachine;
import org.springframework.statemachine.boot.autoconfigure.StateMachineAutoConfiguration;
import org.springframework.statemachine.boot.support.BootStateMachineMonitor;
import org.springframework.statemachine.config.EnableStateMachine;
import org.springframework.statemachine.config.StateMachineConfigurerAdapter;
import org.springframework.statemachine.config.builders.StateMachineStateConfigurer;

View File

@@ -26,6 +26,7 @@ import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfigurat
import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.statemachine.boot.autoconfigure.StateMachineJpaRepositoriesAutoConfiguration;
import org.springframework.statemachine.data.jpa.JpaRepositoryState;
public class StateMachineJpaRepositoriesAutoConfigurationTests {

View File

@@ -26,6 +26,8 @@ import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.statemachine.boot.autoconfigure.StateMachineMongoDbRepositoriesAutoConfiguration;
import org.springframework.statemachine.boot.autoconfigure.StateMachineRedisRepositoriesAutoConfiguration;
import org.springframework.statemachine.data.mongodb.MongoDbRepositoryState;
public class StateMachineMongoDbRepositoriesAutoConfigurationTests {

View File

@@ -25,6 +25,7 @@ import org.springframework.boot.autoconfigure.data.redis.RedisRepositoriesAutoCo
import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.Configuration;
import org.springframework.statemachine.boot.autoconfigure.StateMachineRedisRepositoriesAutoConfiguration;
import org.springframework.statemachine.data.redis.RedisRepositoryState;
public class StateMachineRedisRepositoriesAutoConfigurationTests {