BAEL-19967: Migrate spring-akka module to the com.baeldung package

This commit is contained in:
Krzysiek 2019-12-17 21:26:22 +01:00
parent c56b1558cb
commit faf8421d75
6 changed files with 9 additions and 11 deletions

View File

@ -1,4 +1,4 @@
package org.baeldung.akka; package com.baeldung.akka;
import akka.actor.ActorSystem; import akka.actor.ActorSystem;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -7,8 +7,6 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import static org.baeldung.akka.SpringExtension.SPRING_EXTENSION_PROVIDER;
@Configuration @Configuration
@ComponentScan @ComponentScan
public class AppConfiguration { public class AppConfiguration {
@ -19,7 +17,7 @@ public class AppConfiguration {
@Bean @Bean
public ActorSystem actorSystem() { public ActorSystem actorSystem() {
ActorSystem system = ActorSystem.create("akka-spring-demo"); ActorSystem system = ActorSystem.create("akka-spring-demo");
SPRING_EXTENSION_PROVIDER.get(system).initialize(applicationContext); SpringExtension.SPRING_EXTENSION_PROVIDER.get(system).initialize(applicationContext);
return system; return system;
} }

View File

@ -1,4 +1,4 @@
package org.baeldung.akka; package com.baeldung.akka;
import akka.actor.UntypedActor; import akka.actor.UntypedActor;
import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.beans.factory.config.ConfigurableBeanFactory;

View File

@ -1,4 +1,4 @@
package org.baeldung.akka; package com.baeldung.akka;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package org.baeldung.akka; package com.baeldung.akka;
import akka.actor.Actor; import akka.actor.Actor;
import akka.actor.IndirectActorProducer; import akka.actor.IndirectActorProducer;

View File

@ -1,4 +1,4 @@
package org.baeldung.akka; package com.baeldung.akka;
import akka.actor.AbstractExtensionId; import akka.actor.AbstractExtensionId;
import akka.actor.ExtendedActorSystem; import akka.actor.ExtendedActorSystem;

View File

@ -1,11 +1,11 @@
package org.baeldung.akka; package com.baeldung.akka;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import akka.actor.ActorRef; import akka.actor.ActorRef;
import akka.actor.ActorSystem; import akka.actor.ActorSystem;
import akka.util.Timeout; import akka.util.Timeout;
import org.baeldung.akka.GreetingActor.Greet; import com.baeldung.akka.GreetingActor.Greet;
import org.junit.After; import org.junit.After;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
@ -17,7 +17,7 @@ import scala.concurrent.Future;
import scala.concurrent.duration.FiniteDuration; import scala.concurrent.duration.FiniteDuration;
import static akka.pattern.Patterns.ask; import static akka.pattern.Patterns.ask;
import static org.baeldung.akka.SpringExtension.SPRING_EXTENSION_PROVIDER; import static com.baeldung.akka.SpringExtension.SPRING_EXTENSION_PROVIDER;
@ContextConfiguration(classes = AppConfiguration.class) @ContextConfiguration(classes = AppConfiguration.class)
public class SpringAkkaIntegrationTest extends AbstractJUnit4SpringContextTests { public class SpringAkkaIntegrationTest extends AbstractJUnit4SpringContextTests {