KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tcspring > ScopeContextMixin


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tcspring;
5
6 import org.springframework.beans.factory.config.Scope;
7 import org.springframework.beans.factory.support.AbstractBeanFactory;
8
9
10 /**
11  * Holds current Scope context
12  *
13  * @author Eugene Kuleshov
14  */

15 public class ScopeContextMixin implements ScopeContext {
16   private Object JavaDoc beanId;
17   private Scope scope;
18   private AbstractBeanFactory beanFactory;
19
20   public Object JavaDoc getBeanId() {
21     return beanId;
22   }
23
24   public void setBeanId(Object JavaDoc beanId) {
25     this.beanId = beanId;
26   }
27
28   public void setScope(Scope scope) {
29     this.scope = scope;
30   }
31   
32   public Scope getScope() {
33     return scope;
34   }
35   
36   public AbstractBeanFactory getBeanFactory() {
37     return beanFactory;
38   }
39   
40   public void setBeanFactory(AbstractBeanFactory beanFactory) {
41     this.beanFactory = beanFactory;
42   }
43   
44 }
45
46
Popular Tags