01: /**
02: * JOnAS : Java(TM) OpenSource Application Server
03: * Copyright (C) 2005 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19: * USA
20: *
21: * --------------------------------------------------------------------------
22: * $Id: JConnectionFactory.java 7251 2005-08-17 13:13:45Z sauthieg $
23: * --------------------------------------------------------------------------
24: */package org.objectweb.jonas.jaxr.scout;
25:
26: import javax.naming.NamingException;
27: import javax.naming.Reference;
28: import javax.resource.Referenceable;
29: import org.apache.ws.scout.registry.ConnectionFactoryImpl;
30:
31: /**
32: * <code>JConnectionFactory</code> is an extension of Scout <code>ConnectionFactoryImpl</code>.
33: * It's used to store the Naming Reference used by the resource service to recreate the
34: * <code>ConnectionFactory</code> instance.
35: *
36: * @author Guillaume Sauthier
37: */
38: public class JConnectionFactory extends ConnectionFactoryImpl implements
39: Referenceable {
40:
41: /**
42: * UID
43: */
44: private static final long serialVersionUID = 3257569490513573686L;
45:
46: /**
47: * stored Reference
48: */
49: private Reference ref = null;
50:
51: /**
52: * @see javax.naming.Referenceable#getReference()
53: */
54: public Reference getReference() throws NamingException {
55: return ref;
56: }
57:
58: /**
59: * @see javax.resource.Referenceable#setReference(javax.naming.Reference)
60: */
61: public void setReference(Reference ref) {
62: this.ref = ref;
63: }
64: }
|