01: /*
02: * Copyright (c) 2002-2006 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.xwork.interceptor.component;
06:
07: /**
08: * @author joew@thoughtworks.com
09: * @author $Author: rainerh $
10: * @version $Revision: 860 $
11: * @deprecated XWork IoC has been deprecated in favor of Spring.
12: * Please refer to the Spring-WebWork integration documentation for more info.
13: */
14: public interface ComponentManager {
15:
16: String COMPONENT_MANAGER_KEY = "DefaultComponentManager";
17:
18: Object getComponent(Class enablerType);
19:
20: void setFallback(ComponentManager fallback);
21:
22: void addEnabler(Class component, Class enablerType);
23:
24: void dispose();
25:
26: void initializeObject(Object obj);
27:
28: void registerInstance(Class componentType, Object instance);
29:
30: Object getComponentInstance(Class componentType);
31:
32: ComponentConfiguration getConfig();
33:
34: void setConfig(ComponentConfiguration config);
35:
36: void setScope(String scope);
37:
38: void reset();
39: }
|