Skip to content

Commit

Permalink
[ISSUE 410] Updated spring package to be com.github.dozermapper.spring (
Browse files Browse the repository at this point in the history
#450)

* Updated spring package to be com.github.dozermapper.spring

* Added migration docs note
  • Loading branch information
garethahealy authored Jul 6, 2017
1 parent 77ee866 commit 026fde8
Show file tree
Hide file tree
Showing 24 changed files with 53 additions and 36 deletions.
13 changes: 13 additions & 0 deletions docs/asciidoc/migration/v6-to-v61.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,18 @@ org.dozer
com.github.dozermapper.protobuf
----

=== 9. Updated dozer-spring package name
**From:**
[source,java,prettyprint]
----
org.dozer.spring
----

**To:**
[source,java,prettyprint]
----
com.github.dozermapper.spring
----



2 changes: 1 addition & 1 deletion proto/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<artifactId>dozer-proto</artifactId>
<packaging>jar</packaging>
<name>Dozer :: Protobuf</name>
<name>Dozer :: Protobuf 3</name>

<properties>
<!-- NOTE: Needs to be removed in future -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring;
package com.github.dozermapper.spring;

import java.io.IOException;
import java.net.URL;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring;
package com.github.dozermapper.spring;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring;
package com.github.dozermapper.spring;

import org.w3c.dom.Element;

Expand Down
2 changes: 1 addition & 1 deletion spring/src/main/resources/META-INF/spring.handlers
Original file line number Diff line number Diff line change
@@ -1 +1 @@
http\://dozermapper.github.io/schema/dozer-spring=org.dozer.spring.DozerNamespaceHandler
http\://dozermapper.github.io/schema/dozer-spring=com.github.dozermapper.spring.DozerNamespaceHandler
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring;
package com.github.dozermapper.spring;

import java.net.URL;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.functional_tests;
package com.github.dozermapper.spring.functional_tests;

import com.github.dozermapper.spring.functional_tests.support.ReferencingBean;

import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;
import org.dozer.spring.functional_tests.support.ReferencingBean;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.functional_tests;
package com.github.dozermapper.spring.functional_tests;

import java.util.List;

import com.github.dozermapper.spring.functional_tests.support.EventTestListener;
import com.github.dozermapper.spring.functional_tests.support.InjectedCustomConverter;
import com.github.dozermapper.spring.vo.Destination;
import com.github.dozermapper.spring.vo.Source;

import org.dozer.CustomConverter;
import org.dozer.DozerBeanMapper;
import org.dozer.DozerEventListener;
import org.dozer.Mapper;
import org.dozer.spring.functional_tests.support.EventTestListener;
import org.dozer.spring.functional_tests.support.InjectedCustomConverter;
import org.dozer.spring.vo.Destination;
import org.dozer.spring.vo.Source;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.functional_tests.support;
package com.github.dozermapper.spring.functional_tests.support;

import org.dozer.ConfigurableCustomConverter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.functional_tests.support;
package com.github.dozermapper.spring.functional_tests.support;

import java.util.concurrent.atomic.AtomicInteger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.functional_tests.support;
package com.github.dozermapper.spring.functional_tests.support;

import com.github.dozermapper.spring.vo.Destination;
import com.github.dozermapper.spring.vo.Source;

import org.dozer.DozerConverter;
import org.dozer.spring.vo.Destination;
import org.dozer.spring.vo.Source;

/**
* @author garsombke.franz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.functional_tests.support;
package com.github.dozermapper.spring.functional_tests.support;

import org.dozer.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.functional_tests.support;
package com.github.dozermapper.spring.functional_tests.support;

import com.github.dozermapper.spring.vo.Destination;
import com.github.dozermapper.spring.vo.Source;

import org.dozer.loader.api.BeanMappingBuilder;
import org.dozer.spring.vo.Destination;
import org.dozer.spring.vo.Source;

import static org.dozer.loader.api.FieldsMappingOptions.copyByReference;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.functional_tests.support;
package com.github.dozermapper.spring.functional_tests.support;

import org.dozer.BeanFactory;
import org.dozer.config.BeanContainer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.vo;
package com.github.dozermapper.spring.vo;

/**
* @author Dmitry Buzdin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.dozer.spring.vo;
package com.github.dozermapper.spring.vo;

/**
* @author Dmitry Buzdin
Expand Down
2 changes: 1 addition & 1 deletion spring/src/test/resources/applicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
factory-method="buildDefault"/>

<!-- Provided Spring Integration -->
<bean id="byFactory" class="org.dozer.spring.DozerBeanMapperFactoryBean">
<bean id="byFactory" class="com.github.dozermapper.spring.DozerBeanMapperFactoryBean">
<property name="mappingFiles" value="classpath*:/*Mapping.xml"/>
<property name="customConverters">
<list/>
Expand Down
6 changes: 3 additions & 3 deletions spring/src/test/resources/mappings/mappingSpring.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
<stop-on-errors>true</stop-on-errors>
<wildcard>true</wildcard>
<custom-converters>
<converter type="org.dozer.spring.functional_tests.support.InjectedCustomConverter">
<class-a>org.dozer.spring.vo.Source</class-a>
<class-b>org.dozer.spring.vo.Destination</class-b>
<converter type="com.github.dozermapper.spring.functional_tests.support.InjectedCustomConverter">
<class-a>com.github.dozermapper.spring.vo.Source</class-a>
<class-b>com.github.dozermapper.spring.vo.Destination</class-b>
</converter>
</custom-converters>
</configuration>
Expand Down
4 changes: 2 additions & 2 deletions spring/src/test/resources/spring-bean-factory.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
<property name="factories">
<map>
<!-- the key matches the name of the factory in the dozerBeanMapping.xml file -->
<entry key="org.dozer.spring.functional_tests.support.SampleCustomBeanFactory" value-ref="customBeanFactory"/>
<entry key="com.github.dozermapper.spring.functional_tests.support.SampleCustomBeanFactory" value-ref="customBeanFactory"/>
<!-- more factories can be supplied with additional entry's -->
</map>
</property>
</bean>

<bean id="customBeanFactory" class="org.dozer.spring.functional_tests.support.SampleCustomBeanFactory" scope="singleton"/>
<bean id="customBeanFactory" class="com.github.dozermapper.spring.functional_tests.support.SampleCustomBeanFactory" scope="singleton"/>

</beans>
4 changes: 2 additions & 2 deletions spring/src/test/resources/spring-bean-mapping-builder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="factoryWithMappingBuilder" class="org.dozer.spring.DozerBeanMapperFactoryBean">
<bean id="factoryWithMappingBuilder" class="com.github.dozermapper.spring.DozerBeanMapperFactoryBean">
<property name="mappingBuilders">
<list>
<bean class="org.dozer.spring.functional_tests.support.SampleBeanMappingBuilder"/>
<bean class="com.github.dozermapper.spring.functional_tests.support.SampleBeanMappingBuilder"/>
</list>
</property>
</bean>
Expand Down
2 changes: 1 addition & 1 deletion spring/src/test/resources/spring-custom-converter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</property>
</bean>

<bean id="converter" class="org.dozer.spring.functional_tests.support.InjectedCustomConverter">
<bean id="converter" class="com.github.dozermapper.spring.functional_tests.support.InjectedCustomConverter">
<property name="parameter" value="injectedName"/>
</bean>

Expand Down
2 changes: 1 addition & 1 deletion spring/src/test/resources/spring-event-listener.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
</property>
</bean>

<bean id="eventTestListener" class="org.dozer.spring.functional_tests.support.EventTestListener" scope="singleton"/>
<bean id="eventTestListener" class="com.github.dozermapper.spring.functional_tests.support.EventTestListener" scope="singleton"/>

</beans>
2 changes: 1 addition & 1 deletion spring/src/test/resources/springNameSpace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

<dozer:mapper id="beanMapper"/>

<bean class="org.dozer.spring.functional_tests.support.ReferencingBean"/>
<bean class="com.github.dozermapper.spring.functional_tests.support.ReferencingBean"/>

</beans>

0 comments on commit 026fde8

Please sign in to comment.