Source Code Cross Referenced for DynamicDataBindingCallback.java in  » ESB » celtix-1.0 » org » objectweb » celtix » bus » jaxws » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » celtix 1.0 » org.objectweb.celtix.bus.jaxws 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.objectweb.celtix.bus.jaxws;
002:
003:        import java.util.logging.Level;
004:        import java.util.logging.Logger;
005:
006:        import javax.jws.WebParam;
007:        import javax.jws.WebResult;
008:        import javax.jws.WebService;
009:        import javax.jws.soap.SOAPBinding.ParameterStyle;
010:        import javax.jws.soap.SOAPBinding.Style;
011:        import javax.jws.soap.SOAPBinding.Use;
012:        import javax.xml.bind.JAXBContext;
013:        import javax.xml.namespace.QName;
014:        import javax.xml.soap.SOAPBody;
015:
016:        import org.objectweb.celtix.bindings.DataBindingCallback;
017:        import org.objectweb.celtix.bindings.DataReader;
018:        import org.objectweb.celtix.bindings.DataWriter;
019:        import org.objectweb.celtix.bus.jaxws.io.SOAPBodyDataReader;
020:        import org.objectweb.celtix.bus.jaxws.io.SOAPBodyDataWriter;
021:        import org.objectweb.celtix.bus.jaxws.io.SOAPMessageDataReader;
022:        import org.objectweb.celtix.bus.jaxws.io.SOAPMessageDataWriter;
023:        import org.objectweb.celtix.common.logging.LogUtils;
024:        import org.objectweb.celtix.context.ObjectMessageContext;
025:
026:        public class DynamicDataBindingCallback implements  DataBindingCallback {
027:
028:            private static final Logger LOG = LogUtils
029:                    .getL7dLogger(DynamicDataBindingCallback.class);
030:
031:            protected final Mode mode;
032:            protected final Class<?>[] clazz;
033:            protected final JAXBContext context;
034:
035:            public DynamicDataBindingCallback(Class<?> cls, Mode md) {
036:                mode = md;
037:                clazz = new Class<?>[] { cls };
038:                context = null;
039:            }
040:
041:            public DynamicDataBindingCallback(JAXBContext ctx, Mode md) {
042:                mode = md;
043:                context = ctx;
044:                clazz = new Class<?>[] { Object.class };
045:            }
046:
047:            public Mode getMode() {
048:                return mode;
049:            }
050:
051:            public JAXBContext getJAXBContext() {
052:                return context;
053:            }
054:
055:            public Class<?>[] getSupportedFormats() {
056:                return clazz;
057:            }
058:
059:            public <T> DataWriter<T> createWriter(Class<T> cls) {
060:                if (getMode() == Mode.MESSAGE) {
061:                    return new SOAPMessageDataWriter<T>(this );
062:                } else if ((getMode() == Mode.PAYLOAD)
063:                        && (cls.isAssignableFrom(SOAPBody.class))) {
064:                    return new SOAPBodyDataWriter<T>(this );
065:                }
066:                LOG.log(Level.SEVERE, "No DataWriter for class: "
067:                        + cls.getName());
068:                return null;
069:            }
070:
071:            public <T> DataReader<T> createReader(Class<T> cls) {
072:                if (getMode() == Mode.MESSAGE) {
073:                    return new SOAPMessageDataReader<T>(this );
074:                } else if ((getMode() == Mode.PAYLOAD)
075:                        && (cls.isAssignableFrom(SOAPBody.class))) {
076:                    return new SOAPBodyDataReader<T>(this );
077:                }
078:                LOG.log(Level.SEVERE, "No DataReader for class: "
079:                        + cls.getName());
080:                return null;
081:            }
082:
083:            public Style getSOAPStyle() {
084:                // TODO Auto-generated method stub
085:                return null;
086:            }
087:
088:            public Use getSOAPUse() {
089:                // TODO Auto-generated method stub
090:                return null;
091:            }
092:
093:            public ParameterStyle getSOAPParameterStyle() {
094:                // TODO Auto-generated method stub
095:                return null;
096:            }
097:
098:            public String getOperationName() {
099:                // TODO Auto-generated method stub
100:                return null;
101:            }
102:
103:            public String getTargetNamespace() {
104:                // TODO Auto-generated method stub
105:                return null;
106:            }
107:
108:            public String getSOAPAction() {
109:                // TODO Auto-generated method stub
110:                return null;
111:            }
112:
113:            public WebResult getWebResult() {
114:                // TODO Auto-generated method stub
115:                return null;
116:            }
117:
118:            public QName getWebResultQName() {
119:                // TODO Auto-generated method stub
120:                return null;
121:            }
122:
123:            public WebParam getWebParam(int index) {
124:                // TODO Auto-generated method stub
125:                return null;
126:            }
127:
128:            public int getParamsLength() {
129:                // TODO Auto-generated method stub
130:                return 0;
131:            }
132:
133:            public WebResult getWebResultAnnotation() {
134:                // TODO Auto-generated method stub
135:                return null;
136:            }
137:
138:            public WebService getWebService() {
139:                // TODO Auto-generated method stub
140:                return null;
141:            }
142:
143:            public QName getRequestWrapperQName() {
144:                // TODO Auto-generated method stub
145:                return null;
146:            }
147:
148:            public String getRequestWrapperType() {
149:                // TODO Auto-generated method stub
150:                return null;
151:            }
152:
153:            public QName getResponseWrapperQName() {
154:                // TODO Auto-generated method stub
155:                return null;
156:            }
157:
158:            public String getResponseWrapperType() {
159:                // TODO Auto-generated method stub
160:                return null;
161:            }
162:
163:            public boolean isOneWay() {
164:                // TODO Auto-generated method stub
165:                return false;
166:            }
167:
168:            public void initObjectContext(ObjectMessageContext octx) {
169:                // TODO Auto-generated method stub
170:                //REVISIT
171:            }
172:
173:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.