KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > petals > jbi > registry > ConsumerEndpoint


1 /**
2  * PETALS - PETALS Services Platform.
3  * Copyright (c) 2005 Fossil E-Commerce, http://www.fossilec.com/
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * -------------------------------------------------------------------------
19  * $Id: ConsumerEndpoint.java 438 2006-05-19 11:12:26Z alouis $
20  * -------------------------------------------------------------------------
21  */

22 package org.objectweb.petals.jbi.registry;
23
24 import java.io.Serializable JavaDoc;
25
26 import javax.jbi.servicedesc.ServiceEndpoint;
27
28 /**
29  * This Endpoint is used for callback to the consumer during a message exchange.
30  * only containername and componentname attributes are used. This endpoint is
31  * never register, and is only used as the "consumer address" in a
32  * MessageExchange instance.
33  *
34  * @version $Rev: 438 $ $Date: 2006-05-19 13:12:26 +0200 (ven., 19 mai 2006) $
35  * @since Petals 1.0
36  * @author oanass,alouis,<a HREF="mailto:rmarins@fossilec.com">Rafael Marins</a>
37  */

38 public class ConsumerEndpoint extends AbstractEndpoint implements
39     ServiceEndpoint, Cloneable JavaDoc, Serializable JavaDoc {
40
41     
42     private static final long serialVersionUID = 1L;
43
44     /**
45      * @param endpoint
46      */

47     public ConsumerEndpoint(String JavaDoc componentname, String JavaDoc containerName) {
48         super(null, null, componentname, containerName, EndpointType.CONSUMER,
49             null);
50     }
51     
52     /**
53      * Used to clone ConsumerEndPoint.
54      */

55     public ConsumerEndpoint clone(){
56         ConsumerEndpoint consumer = null;
57         try {
58             consumer = (ConsumerEndpoint) super.clone();
59         } catch (CloneNotSupportedException JavaDoc e) {
60             consumer = null;
61         }
62         return consumer;
63     }
64 }
65
Popular Tags