01: /*
02: * The contents of this file are subject to the Sapient Public License
03: * Version 1.0 (the "License"); you may not use this file except in compliance
04: * with the License. You may obtain a copy of the License at
05: * http://carbon.sf.net/License.html.
06: *
07: * Software distributed under the License is distributed on an "AS IS" basis,
08: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
09: * the specific language governing rights and limitations under the License.
10: *
11: * The Original Code is The Carbon Component Framework.
12: *
13: * The Initial Developer of the Original Code is Sapient Corporation
14: *
15: * Copyright (C) 2003 Sapient Corporation. All Rights Reserved.
16: */
17:
18: package org.sape.carbon.core.component.test;
19:
20: import org.sape.carbon.core.component.ComponentConfiguration;
21: import org.sape.carbon.core.component.lifecycle.Configurable;
22:
23: /**
24: * This component is used in the ComponentKeeperTest. The components that
25: * use this class as their functional implementation are
26: * <code>ComponentKeeperTest.CIRCULAR_REFERENCE_A</code> and its dependencies.
27: * The purpose of this component is to cause a circular reference.
28: *
29: * Copyright 2002 Sapient
30: * @see org.sape.carbon.core.component.test.ComponentKeeperTest
31: * @since carbon 1.0
32: * @author Douglas Voet, Febuary 2002
33: * @version $Revision: 1.7 $($Author: dvoet $ / $Date: 2003/05/05 21:21:15 $)
34: */
35: public class CircularReferenceTestComponentImpl implements
36: CircularReferenceTestComponent, Configurable {
37:
38: private CircularReferenceTestComponent dependency;
39:
40: /**
41: * Configure the component. This is preceded and followed by the suspend and
42: * resume operations if they are available on the component.
43: */
44: public void configure(ComponentConfiguration configuration) {
45: CircularReferenceTestComponentConfiguration myConfig = (CircularReferenceTestComponentConfiguration) configuration;
46:
47: dependency = myConfig.getDependency();
48: }
49:
50: /** @link dependency */
51: /*#CircularReferenctTestComponentConfiguration lnkCircularReferenctTestComponentConfiguration;*/
52: }
|