KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > lutris > airsent > business > address > AddressManager


1 /*
2  * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights
3  * Reserved.
4  *
5  * This source code file is distributed by Lutris Technologies, Inc. for
6  * use only by licensed users of product(s) that include this source
7  * file. Use of this source file or the software that uses it is covered
8  * by the terms and conditions of the Lutris Enhydra Development License
9  * Agreement included with this product.
10  *
11  * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
12  * ANY KIND, either express or implied. See the License for the specific terms
13  * governing rights and limitations under the License.
14  *
15  * Contributor(s):
16  *
17  * $Id: AddressManager.java,v 1.1 2004/08/16 09:33:11 slobodan Exp $
18  */

19
20 package com.lutris.airsent.business.address;
21
22 import com.lutris.airsent.business.AirSentBusinessException;
23 import com.lutris.airsent.spec.address.Address;
24 import com.lutris.airsent.data.person.AddressDO;
25
26 /**
27  * Address Factory
28  *
29  *
30  * @author joseph shoop
31  * @version %I%, %G%
32  */

33 public class AddressManager {
34
35     /**
36      * Creates an Address object.
37      * @return CustomerFac
38      * @exception AirSentBusinessException
39      */

40     public AddressImpl create()
41         throws AirSentBusinessException {
42     try {
43         return new AddressImpl();
44     } catch (Exception JavaDoc ex) {
45         throw new AirSentBusinessException("Error creating Messenger");
46     }
47     }
48
49     /**
50      * Creates an Address object from a data object
51      * @return CustomerFac
52      * @exception AirSentBusinessException
53      */

54     public AddressImpl create(AddressDO address)
55         throws AirSentBusinessException {
56     try {
57         return new AddressImpl(address);
58     } catch (Exception JavaDoc ex) {
59         throw new AirSentBusinessException("Error creating Messenger");
60     }
61     }
62
63
64 }
65
66
67
68
Popular Tags