올해의 Spring3.0 개발의 첫 주자는 Arjen Poutsma이다. Arjen은 SWS(SpringWebService)의 리드를 맡고 있고, 스프링의 웹 부분에도 많은 기여를 한 개발자이다.

OXM모듈 추가

R-511에서 Arjen은 스프링의 OXM이라는 새로운 서브모듈을 추가했다. OXM은 Object/XML Mapping의 약자로 원래 SWS에 있던 기능이다. 자바 오브젝트와 XML의 매핑을 지원하는 프레임워크나 라이브러리는 다양하다. OXM의 목적은 그 다양한 Object/XML간의 변환(XML마샬링, XML직렬화라고도 한다)에 대한 추상레이어를 도입해주는 것이다. 스프링의 PSA(Portable Service Abstraction)의 전형적인 케이스라고 볼 수 있다.

현재 OXM이 지원하는 매핑 구현은 JAXB, Castor, XMLBeans, JiBX, XStream이다. 다양한 옵션과 장단점을 가진 이런 구현을 다음의 간단한 스프링이 제공하는 추상 인터페이스로 사용하는 것을 가능하게 해준다.

public interface Marshaller {

    /**
     * Marshals the object graph with the given root into 
     * the provided Result.
     */
    void marshal(Object graph, Result result)
        throws XmlMappingException, IOException;
}

public interface Unmarshaller {

    /**
     * Unmarshals the given provided Source into an object graph.
     */
    Object unmarshal(Source source)
        throws XmlMappingException, IOException;
}

스프링의 DI 개념대로 각각의 실제 구현기술은 설정에서 간단히 교환해서 사용할 수 있다.

 

이런 OXM기능이 Spring에 모듈로 추가된 것은 흥미로운 일이다. 그만큼 OXM의 활용이 보편화되어있다는 증거일 수도 있고, 스프링의 다른 모듈들에서 이 OXM을 활용할 필요가 많이 있다는 증거일 수도 있다.

Core XML Util

OXM모듈 외에 추가된 것은 core모듈의 util항목에 여러가지 XMLReader가 추가된 것이다. StAX 방식의 XMLReader들과 SimpleNamespaceContext개념이 추가되었다.

 

스프링은 그동안 서브프로젝트(또는 포트폴리오 프로젝트)의 기능중 일부를 계속 코어 프레임워크에 추가해왔다. 코어 프레임워크가 비대해지지 않아야 한다는 기본 전제를 가지고 있고, 특별한 도메인이나 상황에서만 적용 가능한 부분은 최대한 별도 프로젝트로 분리해 내는 것이 스프링 개발팀의 정책이다. 그럼에도 코어 프레임워크에 통합되거나 추가되어지는 부분이 있다는 것은 그만큼 보편적으로 많이 사용되어지는 것이라는 뜻이다. 물론 스프링 자체도 옵셔널 모듈을 선택해서 사용할 수 있다는 면에서 그만큼 통합에 대한 부담도 적어진 것일 수도 있다.

예고된 대로 JavaConfig과 SWF의 일부기능도 3.0에 통합될 예정이다.

Related posts:

  1. Spring 3.0 (42) Spring Dependency Matrix 업데이트
  2. Spring 3.0.2 모듈/라이브러리 의존관계
  3. Spring 3.0 (1) 프로젝트 구조와 빌드 시스템의 변화
  4. Spring 3.0 (4) – Maven에서 Spring 3.0 최신버전 사용하기
  5. Spring 3.0 (18) Oxm 모듈의 선택 라이브러리 분석
  6. 미리 보는 Spring 3.0.1의 변경사항
  7. Spring Expressions(SpEL)를 이용한 Mockito Argument Matcher 만들기
  8. Spring 3.0 (8) Core 모듈의 선택 라이브러리 분석
  9. Spring 3.0 (40) Spring ASM 모듈의 소스는 어디에?
  10. Spring 3.0 (16) Jms 모듈의 선택 라이브러리 분석
  11. Spring 3.0 (7) Spring 3.0 Dependency Matrix
  12. Spring 3.0 (26) Spring Expression Language와 @Value
  13. Spring 3.0 (53) Spring Dependency Matrix 업데이트
  14. Spring 3.0 (35) Spring 3.0 Reference Document 공개
  15. 유쾌한 이슈처리 재촉 메일

Facebook comments:

to “Spring 3.0 (2) R-518 스프링의 새 모듈 OXM(Object/XML Mapping)”

  1. x1fT8K This is one awesome article post.Thanks Again. Great.

  2. Having read this I believed it was very enlightening. I appreciate you spending some time and effort to put this short article together. I once again find myself spending a lot of time both reading and commenting. But so what, it was still worthwhile!

  3. This site was… how do you say it? Relevant!! Finally I have found something which helped me. Appreciate it!

  4. we came across a cool web-site that you may well get pleasure from. Take a appear if you want

  5. Hi, I do believe this is an excellent web site. I stumbledupon it ;) I’m going to return once again since i have book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to help others.

  6. I seriously love your blog.. Very nice colors & theme. Did you create this site yourself? Please reply back as I’m attempting to create my very own site and would like to find out where you got this from or what the theme is called. Appreciate it!

  7. just beneath, are quite a few completely not connected websites to ours, nevertheless, they are certainly really worth going over

  8. Everything is very open with a very clear explanation of the challenges. It was definitely informative. Your website is useful. Thanks for sharing.

  9. An outstanding share! I have just forwarded this onto a colleague who has been doing a little research on this. And he in fact bought me dinner because I found it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanks for spending time to talk about this subject here on your web site.

  10. Sites of interest we’ve a link to

  11. check beneath, are some entirely unrelated web-sites to ours, even so, they’re most trustworthy sources that we use

  12. 2s44hH in everyday years are usually emancipated you don at have to invest a great deal in relation to enjoyment specially with

  13. Spot on with this write-up, I honestly believe that this website needs a lot more attention. I’ll probably be back again to read more, thanks for the advice.

  14. Here are some of the sites we recommend for our visitors

  15. The facts mentioned in the write-up are several of the most beneficial offered

  16. Way cool! Some very valid points! I appreciate you writing this article plus the rest of the website is extremely good.

  17. Here is a great Blog You may Find Exciting that we Encourage You

  18. The data mentioned inside the write-up are several of the ideal obtainable

  19. the time to read or go to the content material or web pages we’ve linked to beneath the

  20. just beneath, are many totally not related internet sites to ours, on the other hand, they may be certainly really worth going over

  21. check beneath, are some totally unrelated internet websites to ours, even so, they’re most trustworthy sources that we use

  22. below you will obtain the link to some websites that we feel you ought to visit

  23. we came across a cool web site which you may well get pleasure from. Take a search in case you want

  24. the time to study or check out the material or internet sites we’ve linked to beneath the

  25. There’s definately a great deal to know about this issue. I really like all the points you made.

  26. usually posts some quite interesting stuff like this. If youre new to this site

  27. Kamagra Oral Jelly Aachen Cialis Kamagra En France En Ligne Cialis Online Pharamacy

  28. This is a topic that’s near to my heart… Thank you! Where can I find the contact details for questions?

  29. just beneath, are numerous entirely not associated web pages to ours, nonetheless, they’re certainly really worth going over

  30. Here is a superb Blog You might Discover Exciting that we Encourage You

  31. Pretty! This was an extremely wonderful post. Many thanks for providing this info.

  32. I absolutely love your site.. Excellent colors & theme. Did you build this web site yourself? Please reply back as I’m planning to create my very own site and would like to learn where you got this from or just what the theme is named. Appreciate it!

  33. This is a great tip particularly to those fresh to the blogosphere. Simple but very accurate information… Many thanks for sharing this one. A must read article!

  34. Only wanna remark that you have a very nice site, I enjoy the layout it actually stands out.

  35. please stop by the web-sites we adhere to, which includes this 1, because it represents our picks through the web

  36. Spot on with this write-up, I really believe that this website needs a great deal more attention. I’ll probably be returning to see more, thanks for the info!

  37. we came across a cool site that you just could enjoy. Take a look in the event you want

  38. Scribbler, give me a student as record-book!)))

  39. This info is priceless. Where can I find out more?

  40. always a significant fan of linking to bloggers that I enjoy but really don’t get a great deal of link adore from

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2017 Toby's Epril Suffusion theme by Sayontan Sinha