사용자 도구

사이트 도구


springframework:scope

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
springframework:scope [2018/09/17 18:03]
kwon37xi
springframework:scope [2018/09/17 18:03] (현재)
kwon37xi
줄 2: 줄 2:
   * [[https://www.baeldung.com/spring-lookup|@Lookup Annotation in Spring]]   * [[https://www.baeldung.com/spring-lookup|@Lookup Annotation in Spring]]
  
-===== prototype =====+===== prototype Scope =====
   * 매번 객체 새로 생성할 필요가 있을 경우 사용한다.   * 매번 객체 새로 생성할 필요가 있을 경우 사용한다.
   * [[http://docs.oracle.com/javaee/7/api/javax/annotation/PreDestroy.html|@PreDestroy]] 애노테이션이 작동하지 않는다. 즉, 초기화는 하지만 종료 처리는 하지 않으므로 종료처리를 Bean 사용처에서 직접해야 한다. 그 외의 다른 스코프에서는 작동한다.    * [[http://docs.oracle.com/javaee/7/api/javax/annotation/PreDestroy.html|@PreDestroy]] 애노테이션이 작동하지 않는다. 즉, 초기화는 하지만 종료 처리는 하지 않으므로 종료처리를 Bean 사용처에서 직접해야 한다. 그 외의 다른 스코프에서는 작동한다. 
줄 32: 줄 32:
 </code> </code>
  
-===== request/session =====+===== request/session Scope =====
   * 웹 Request/Session 이 생성될 때마다 객체를 새로 생성하여 넘겨준다.   * 웹 Request/Session 이 생성될 때마다 객체를 새로 생성하여 넘겨준다.
   * [[http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html#beans-factory-scopes-other|Bean Factory Scopes Other]]   * [[http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/beans.html#beans-factory-scopes-other|Bean Factory Scopes Other]]
springframework/scope.txt · 마지막으로 수정됨: 2018/09/17 18:03 저자 kwon37xi