KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > arooa > ObjectFactory


1 package org.oddjob.arooa;
2
3 /**
4  * Interface for a factory that is capable of creating an object.
5  *
6  * @author Rob Gordon.
7  */

8 public interface ObjectFactory {
9
10     /**
11      * Create an object for a given name.
12      *
13      * @param name The name of the object.
14      * @return The the created object.
15      * @throws ArooaException If creation failed.
16      */

17     public Object JavaDoc createObject(String JavaDoc name) throws ArooaException;
18
19 }
20
Popular Tags