KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ws > wsgen > generator > ews > wsdltoj2ee > emitter > FullEmitter


1 /**
2  * JOnAS : Java(TM) Open Application Server
3  * Copyright (C) 2005 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * 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: FullEmitter.java,v 1.1 2005/01/11 14:36:49 sauthieg Exp $
23  * --------------------------------------------------------------------------
24  */

25 package org.objectweb.jonas_ws.wsgen.generator.ews.wsdltoj2ee.emitter;
26
27 import org.objectweb.jonas_ws.wsgen.generator.ews.wsdltoj2ee.JOnASJ2EEWebServicesContext;
28
29 /**
30  * Allows to define more options like classloader.
31  * @author Florent Benoit
32  */

33 public class FullEmitter extends org.apache.geronimo.ews.jaxrpcmapping.J2eeEmitter implements JOnASWSEmitter {
34
35     /**
36      * Classloader to use
37      */

38     private ClassLoader JavaDoc classLoader = null;
39
40     private boolean bindingGeneration = true;
41
42     private boolean serviceGeneration = true;
43
44     private boolean deployGeneration = true;
45
46     /**
47      * @return the classLoader.
48      */

49     public ClassLoader JavaDoc getClassLoader() {
50         return classLoader;
51     }
52
53     /**
54      * Set the classloader to use
55      * @param classLoader The classLoader to set.
56      */

57     public void setClassLoader(ClassLoader JavaDoc classLoader) {
58         this.classLoader = classLoader;
59     }
60
61     /**
62      * @see org.objectweb.jonas_ws.wsgen.generator.ews.wsdltoj2ee.emitter.JOnASWSEmitter#getJOnASWsContext()
63      */

64     public JOnASJ2EEWebServicesContext getJOnASWsContext() {
65         return (JOnASJ2EEWebServicesContext) getWscontext();
66     }
67
68     /**
69      * @see org.objectweb.jonas_ws.wsgen.generator.ews.wsdltoj2ee.emitter.JOnASWSEmitter#setJOnASWsContext(org.objectweb.jonas_ws.wsgen.generator.ews.wsdltoj2ee.JOnASJ2EEWebServicesContext)
70      */

71     public void setJOnASWsContext(JOnASJ2EEWebServicesContext context) {
72         setWscontext(context);
73     }
74
75     public boolean hasBindingGeneration() {
76         return bindingGeneration;
77     }
78
79     public boolean hasServiceGeneration() {
80         return serviceGeneration;
81     }
82
83     public boolean hasDeployGeneration() {
84         return deployGeneration;
85     }
86
87     public void setBindingGeneration(boolean bg) {
88         bindingGeneration = bg;
89     }
90
91     public void setServiceGeneration(boolean sg) {
92         serviceGeneration = sg;
93     }
94
95     public void setDeployGeneration(boolean dg) {
96         deployGeneration = dg;
97     }
98 }
Popular Tags