KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > websvc > customization > model > CustomizationComponentFactory


1
2 /*
3 * The contents of this file are subject to the terms of the Common Development
4 * and Distribution License (the License). You may not use this file except in
5 * compliance with the License.
6 *
7 * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
8 * or http://www.netbeans.org/cddl.txt.
9 *
10 * When distributing Covered Code, include this CDDL Header Notice in each file
11 * and include the License file at http://www.netbeans.org/cddl.txt.
12 * If applicable, add the following below the CDDL Header, with the fields
13 * enclosed by brackets [] replaced by your own identifying information:
14 * "Portions Copyrighted [year] [name of copyright owner]"
15 *
16 * The Original Software is NetBeans. The Initial Developer of the Original
17 * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
18 * Microsystems, Inc. All Rights Reserved.
19 */

20 /*
21  * CustomizationComponentFactory.java
22  *
23  * Created on March 24, 2006, 11:20 AM
24  *
25  * To change this template, choose Tools | Template Manager
26  * and open the template in the editor.
27  */

28
29 package org.netbeans.modules.websvc.customization.model;
30
31 import org.netbeans.modules.websvc.customization.model.impl.BindingCustomizationImpl;
32 import org.netbeans.modules.websvc.customization.model.impl.BindingOperationCustomizationImpl;
33 import org.netbeans.modules.websvc.customization.model.impl.DefinitionsCustomizationImpl;
34 import org.netbeans.modules.websvc.customization.model.impl.EnableAsyncMappingImpl;
35 import org.netbeans.modules.websvc.customization.model.impl.EnableMIMEContentImpl;
36 import org.netbeans.modules.websvc.customization.model.impl.EnableWrapperStyleImpl;
37 import org.netbeans.modules.websvc.customization.model.impl.JavaClassImpl;
38 import org.netbeans.modules.websvc.customization.model.impl.JavaDocImpl;
39 import org.netbeans.modules.websvc.customization.model.impl.JavaExceptionImpl;
40 import org.netbeans.modules.websvc.customization.model.impl.JavaMethodImpl;
41 import org.netbeans.modules.websvc.customization.model.impl.JavaPackageImpl;
42 import org.netbeans.modules.websvc.customization.model.impl.JavaParameterImpl;
43 import org.netbeans.modules.websvc.customization.model.impl.PortCustomizationImpl;
44 import org.netbeans.modules.websvc.customization.model.impl.PortTypeCustomizationImpl;
45 import org.netbeans.modules.websvc.customization.model.impl.PortTypeOperationCustomizationImpl;
46 import org.netbeans.modules.websvc.customization.model.impl.PortTypeOperationFaultCustomizationImpl;
47 import org.netbeans.modules.websvc.customization.model.impl.ProviderImpl;
48 import org.netbeans.modules.websvc.customization.model.impl.ServiceCustomizationImpl;
49 import org.netbeans.modules.xml.wsdl.model.WSDLModel;
50
51 /**
52  *
53  * @author rico
54  */

55 public class CustomizationComponentFactory {
56     
57     private static CustomizationComponentFactory factory =
58             new CustomizationComponentFactory();
59     /** Creates a new instance of CustomizationComponentFactory */
60     private CustomizationComponentFactory() {
61     }
62     
63     public static CustomizationComponentFactory getDefault(){
64         return factory;
65     }
66     
67     public BindingCustomization createBindingCustomization(WSDLModel model){
68         return new BindingCustomizationImpl(model);
69     }
70     
71     public BindingOperationCustomization createBindingOperationCustomization(WSDLModel model){
72         return new BindingOperationCustomizationImpl(model);
73     }
74     
75     public DefinitionsCustomization createDefinitionsCustomization(WSDLModel model){
76         return new DefinitionsCustomizationImpl(model);
77     }
78     
79     public EnableAsyncMapping createEnableAsyncMapping(WSDLModel model){
80         return new EnableAsyncMappingImpl(model);
81     }
82     
83     public EnableMIMEContent createEnableMIMEContent(WSDLModel model){
84         return new EnableMIMEContentImpl(model);
85     }
86     
87     public EnableWrapperStyle createEnableWrapperStyle(WSDLModel model){
88         return new EnableWrapperStyleImpl(model);
89     }
90     
91     public JavaClass createJavaClass(WSDLModel model){
92         return new JavaClassImpl(model);
93     }
94     
95     public JavaDoc createJavaDoc(WSDLModel model){
96         return new JavaDocImpl(model);
97     }
98     
99     public JavaException createJavaException(WSDLModel model){
100         return new JavaExceptionImpl(model);
101     }
102     
103     public JavaMethod createJavaMethod(WSDLModel model){
104         return new JavaMethodImpl(model);
105     }
106     
107     public JavaPackage createJavaPackage(WSDLModel model){
108         return new JavaPackageImpl(model);
109     }
110     
111     public JavaParameter createJavaParameter(WSDLModel model){
112         return new JavaParameterImpl(model);
113     }
114     
115     public PortCustomization createPortCustomization(WSDLModel model){
116         return new PortCustomizationImpl(model);
117     }
118     
119     public PortTypeCustomization createPortTypeCustomization(WSDLModel model){
120         return new PortTypeCustomizationImpl(model);
121     }
122     
123     public PortTypeOperationCustomization createPortTypeOperationCustomization(WSDLModel model){
124         return new PortTypeOperationCustomizationImpl(model);
125     }
126     
127     public PortTypeOperationFaultCustomization createPortTypeOperationFaultCustomization(WSDLModel model){
128         return new PortTypeOperationFaultCustomizationImpl(model);
129     }
130     
131     public Provider createProvider(WSDLModel model){
132         return new ProviderImpl(model);
133     }
134     
135     public ServiceCustomization createServiceCustomization(WSDLModel model){
136         return new ServiceCustomizationImpl(model);
137     }
138 }
139
Popular Tags