KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > factory > Producible


1 /*
2  * Copyright 1999-2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.portal.factory;
17
18 import org.apache.cocoon.portal.aspect.Aspectalizable;
19
20
21
22 /**
23  * This interface marks an object that can be created by a factory.
24  *
25  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
26  *
27  * @version CVS $Id: Producible.java 30932 2004-07-29 17:35:38Z vgritsenko $
28  */

29 public interface Producible
30     extends Aspectalizable {
31     
32     /**
33      * The name given from the factory
34      */

35     String JavaDoc getName();
36
37     /**
38      * Get the unique id of this object
39      * @return String Unique id
40      */

41     String JavaDoc getId();
42
43     /**
44      * Set the layout description
45      */

46     void setDescription(ProducibleDescription description);
47     
48     /**
49      * Initialize the object. This should only be called once directly
50      * after the creation
51      */

52     void initialize(String JavaDoc name, String JavaDoc id);
53 }
54
Popular Tags