KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sape > carbon > core > component > test > CircularReferenceTestComponentImpl


1 /*
2  * The contents of this file are subject to the Sapient Public License
3  * Version 1.0 (the "License"); you may not use this file except in compliance
4  * with the License. You may obtain a copy of the License at
5  * http://carbon.sf.net/License.html.
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * 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 =
46                 (CircularReferenceTestComponentConfiguration) configuration;
47
48         dependency = myConfig.getDependency();
49     }
50
51     /** @link dependency */
52     /*#CircularReferenctTestComponentConfiguration lnkCircularReferenctTestComponentConfiguration;*/
53 }
54
Popular Tags