01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tcspring;
05:
06: import org.springframework.beans.factory.config.Scope;
07: import org.springframework.beans.factory.support.AbstractBeanFactory;
08:
09: /**
10: * Holds current Scope context
11: *
12: * @author Eugene Kuleshov
13: */
14: public class ScopeContextMixin implements ScopeContext {
15: private Object beanId;
16: private Scope scope;
17: private AbstractBeanFactory beanFactory;
18:
19: public Object getBeanId() {
20: return beanId;
21: }
22:
23: public void setBeanId(Object beanId) {
24: this .beanId = beanId;
25: }
26:
27: public void setScope(Scope scope) {
28: this .scope = scope;
29: }
30:
31: public Scope getScope() {
32: return scope;
33: }
34:
35: public AbstractBeanFactory getBeanFactory() {
36: return beanFactory;
37: }
38:
39: public void setBeanFactory(AbstractBeanFactory beanFactory) {
40: this.beanFactory = beanFactory;
41: }
42:
43: }
|