Merge pull request #14839 from panos-kakos/JAVA-25490

[JAVA-25490] Package renaming
This commit is contained in:
Kasra Madadipouya 2023-10-09 18:51:22 +02:00 committed by GitHub
commit 0faf3ee42c
12 changed files with 17 additions and 18 deletions

View File

@ -7,7 +7,7 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope; import org.springframework.context.annotation.Scope;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import com.baeldung.scope.singletone.SingletonFunctionBean; import com.baeldung.scope.singleton.SingletonFunctionBean;
@Configuration @Configuration
public class AppConfigFunctionBean { public class AppConfigFunctionBean {

View File

@ -1,10 +1,10 @@
package com.baeldung.scope; package com.baeldung.scope;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import com.baeldung.scope.singletone.SingletonAppContextBean; import com.baeldung.scope.singleton.SingletonAppContextBean;
import com.baeldung.scope.singletone.SingletonBean; import com.baeldung.scope.singleton.SingletonBean;
import com.baeldung.scope.singletone.SingletonObjectFactoryBean; import com.baeldung.scope.singleton.SingletonObjectFactoryBean;
import com.baeldung.scope.singletone.SingletonProviderBean; import com.baeldung.scope.singleton.SingletonProviderBean;
import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.ComponentScan;

View File

@ -1,7 +1,7 @@
package com.baeldung.scope; package com.baeldung.scope;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import com.baeldung.scope.singletone.SingletonBean; import com.baeldung.scope.singleton.SingletonBean;
import org.springframework.beans.factory.config.ConfigurableBeanFactory; import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.*; import org.springframework.context.annotation.*;

View File

@ -1,7 +1,7 @@
package com.baeldung.scope; package com.baeldung.scope;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import com.baeldung.scope.singletone.SingletonBean; import com.baeldung.scope.singleton.SingletonBean;
import org.springframework.context.annotation.AnnotationConfigApplicationContext; import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.util.Assert; import org.springframework.util.Assert;

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.singletone; package com.baeldung.scope.singleton;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import org.springframework.beans.BeansException; import org.springframework.beans.BeansException;

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.singletone; package com.baeldung.scope.singleton;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.singletone; package com.baeldung.scope.singleton;
import java.util.function.Function; import java.util.function.Function;

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.singletone; package com.baeldung.scope.singleton;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import org.springframework.beans.factory.annotation.Lookup; import org.springframework.beans.factory.annotation.Lookup;

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.singletone; package com.baeldung.scope.singleton;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import org.springframework.beans.factory.ObjectFactory; import org.springframework.beans.factory.ObjectFactory;

View File

@ -1,4 +1,4 @@
package com.baeldung.scope.singletone; package com.baeldung.scope.singleton;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;

View File

@ -1,10 +1,9 @@
package com.baeldung.scope; package com.baeldung.scope;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import com.baeldung.scope.singletone.SingletonFunctionBean; import com.baeldung.scope.singleton.SingletonLookupBean;
import com.baeldung.scope.singletone.SingletonLookupBean; import com.baeldung.scope.singleton.SingletonObjectFactoryBean;
import com.baeldung.scope.singletone.SingletonObjectFactoryBean; import com.baeldung.scope.singleton.SingletonProviderBean;
import com.baeldung.scope.singletone.SingletonProviderBean;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;

View File

@ -11,7 +11,7 @@ import org.springframework.test.context.support.AnnotationConfigContextLoader;
import com.baeldung.config.scope.AppConfigFunctionBean; import com.baeldung.config.scope.AppConfigFunctionBean;
import com.baeldung.scope.prototype.PrototypeBean; import com.baeldung.scope.prototype.PrototypeBean;
import com.baeldung.scope.singletone.SingletonFunctionBean; import com.baeldung.scope.singleton.SingletonFunctionBean;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = AppConfigFunctionBean.class) @ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = AppConfigFunctionBean.class)