KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > person > PersonStructFactory


1 /*
2  * Created on Dec 1, 2004
3  * by alex
4  *
5  */

6 package com.nightlabs.ipanema.person;
7
8 /**
9  * @author alex
10  */

11 public abstract class PersonStructFactory {
12     
13     public abstract PersonStruct getPersonStruct();
14     
15     private static PersonStructFactory factory;
16     
17     public static void setPersonStructFactory(PersonStructFactory factory) {
18         PersonStructFactory.factory = factory;
19     }
20     
21     public static PersonStruct getPersonStructure() {
22         return factory.getPersonStruct();
23     }
24     
25     
26     
27 }
28
Popular Tags