1 /* -------------------------------------------------------------------
2 * Java source file for the class Factory
3 *
4 * Copyright (c), 2002, Masahiro Takatsuka.
5 * All Rights Researved.
6 *
7 * Original Author: Masahiro Takatsuka (masa@jbeans.net)
8 * $Author: takatsukam $
9 *
10 * $Date: 2003/07/25 04:51:44 $
11 *
12 * $Id: Factory.java,v 1.1.1.1 2003/07/25 04:51:44 takatsukam Exp $
13 *
14 * Reference: Document no:
15 * ___ ___
16 *
17 * To Do:
18 * ___
19 *
20 ------------------------------------------------------------------- */
21
22 /* --------------------------- Package ---------------------------- */
23 package net.jbeans.bean.factory;
24
25 /* ------------------ Import classes (packages) ------------------- *//package-summary/html">color="#329900"> ------------------ Import classes (packages) ------------------- *//package-summary.html">color="#329900">/* ------------------ Import classes (packages) ------------------- *//package-summary.html">color="#329900"> ------------------ Import classes (packages) ------------------- */
26 // import foo.*;
27
28 /*====================================================================
29 Implementation of class Factory
30 ====================================================================*/
31 /***
32 * A Factory class provides a method to instantiate an object.
33 * <p>
34 * Every factory must support a call on newInstance. Each factory should
35 * override the newInstance method to appropriately instantiate and
36 * initialize an instance of an object.
37 * <p>
38 * Each Factroy should have a null constructor.
39 *
40 * @version $Revision: 1.1.1.1 $
41 * @author Masahiro Takatsuka (masa@jbeans.net)
42 */
43
44 public interface Factory {
45 /***
46 * Instantiates an object.
47 *
48 * @param value The new target object.
49 */
50 Object getInstance();
51 }
This page was automatically generated by Maven