Header

  1. View current page

    정상혁의 수첩

Profile_img_60x60_08
195

Spring container

Inversion of control 페이지 참조할 것

BeanPostProcessor 구현 시 주의할 점

 오브젝트와 의존관계 그리고 스프링 3

 

 

ApplicationContext가 BeanFactory보다 좋은점

MessageSource지원 (MessageSourceAware)

Listener지원 (ApplicationEventPublisherAware)

ResourceLoader지원 (ResourceLoaderAware)

 

Method Injection

Spring Framework 2장 BeanFactory 와 Bean 정의

Spring Framework 3장 다양한 프로퍼티 값과 Bean의 라이프사이클(실행주기)

Bean Life Cycle

빈정보 접근

BeaNameAware

BeanFactoryAware

ApplicatoinContextAware

 

생명주기

InitializingBean , init-method, @PostConstruct

DiposableBean ,destroy-method, @PreDestroy

 

설정

Spring XML설정파일을 위한 12가지 가장 좋은 선택

Spring 설정에 대한 고민

spring: 의존성 주입 방법 - 콜렉션

Spring XML 설정 파일에서 import 동작 원리

jsp에서 Spring의 bean정보 가져오기

Common configuration

Dependency Injection for Loose Coupling - Spring .net

Developing with POJOs Part 3

 

스프링의 getBean() 타입 캐스팅 없애는 방법

Spring 2.0의 XML확장기능 (1)

Spring 2.0의 XML확장기능 (2)

빈 내부 선언 커스텀네임스페이스 만들기

InsideSpring (3) 스프링 밖에서 WebApplicationContext에 접근하기

 

Annotation 기반

@Resource : JSR-250 / EJB3 model

@PostConstruct : InitializingBean#afterPropertiesSet()과 비슷
@PreDestroy : DisposableBean#destroy()와 비슷

@Component

 

@Configurable 사용시 버그 피해가기

컴포넌트 자동감지 기능을 사용해보니..

스프링의 Common Annotations 1.0 지원

 https://jira.springsource.org/browse/SPR-3845

 

DI관련 JSR

Dependency Indejection 표준 정하기 논쟁

Dependency Injection 표준화?

JSR-299 리뷰

JSR-330 리뷰

[스프링 3.0] JSR-330 Provider 인터페이스 이용해서 싱글톤이 아닌 빈을 싱글톤 빈에 주입하기

http://www.adam-bien.com/roller/abien/entry/what_is_the_relation_between

http://blogs.sun.com/enterprisetechtips/entry/using_cdi_and_dependency_injection

JSR-330 Compliance with Spring

http://matthiaswessendorf.wordpress.com/2010/01/19/dependency-injection-the-jsr-330-way/

 

 

Scope

Spring 컨트롤러와 request scope bean

singleton, prototype, request, session, global-session

FactoryBean

FactoryBean을 사용해야하는 경우와 사용예제

'만들 수 없는 것'을 FactoryBean으로 만들기

 

설정 샘플

springonline_final_050108[1].pdf

 

 

퀴즈풀기

http://forum.ksug.org/viewtopic.php?f=5&t=118

<bean id="info" class="a.b.c.Info" p:dao-ref="mydao" scope="prototype" />
<bean id="mydao" class="a.b.c.MyDao" />

 

ApplicationContext aware

<aop:scoped-proxy/>

Method Injection

@Configuable

Arbitrary method replacement

 

History

Last edited on 08/02/2010 10:28 by benelog

Comments (0)

You must log in to leave a comment. Please sign in.