Source Code Cross Referenced for GenerationPlanImpl.java in  » UML » MetaBoss » com » metaboss » sdlctools » services » codegeneration » servicemoduleadaptergenerator » soap » tomcatjwsdp » 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 » UML » MetaBoss » com.metaboss.sdlctools.services.codegeneration.servicemoduleadaptergenerator.soap.tomcatjwsdp 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        // THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
002:        // CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
003:        // BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
004:        // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
005:        // OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
006:        // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
007:        // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
008:        // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
009:        // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
010:        // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
011:        // EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
012:        // POSSIBILITY OF SUCH DAMAGE.
013:        //
014:        // Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
015:        package com.metaboss.sdlctools.services.codegeneration.servicemoduleadaptergenerator.soap.tomcatjwsdp;
016:
017:        import java.util.ArrayList;
018:        import java.util.List;
019:
020:        import com.metaboss.sdlctools.frameworks.generation.internal.GenerationPlan;
021:        import com.metaboss.sdlctools.frameworks.generation.internal.GenerationPlanDefaultImpl;
022:
023:        /** Definition of SOAP Adapter generation */
024:        public class GenerationPlanImpl extends GenerationPlanDefaultImpl {
025:            // Initialise static copying details instruction set
026:            private static List sCopyingDetails = new ArrayList();
027:            static {
028:                //		{
029:                //			GenerationPlan.CopyingDetails lCopyingDetails = new GenerationPlan.CopyingDetails();
030:                //			lCopyingDetails.mResourceFilePath = "MetaBoss_Logo.gif";
031:                //			lCopyingDetails.mDestinationFilePath = "/MetaBoss_Logo.gif";
032:                //			sCopyingDetails.add(lCopyingDetails);
033:                //		}
034:                //		{
035:                //			GenerationPlan.CopyingDetails lCopyingDetails = new GenerationPlan.CopyingDetails();
036:                //			lCopyingDetails.mResourceFilePath = "LevelDown.gif";
037:                //			lCopyingDetails.mDestinationFilePath = "/LevelDown.gif";
038:                //			sCopyingDetails.add(lCopyingDetails);
039:                //		}
040:            }
041:
042:            /** Returns array of instructions for copying files */
043:            public GenerationPlan.CopyingDetails[] getCopyingDetails() {
044:                return (GenerationPlan.CopyingDetails[]) sCopyingDetails
045:                        .toArray(new GenerationPlan.CopyingDetails[sCopyingDetails
046:                                .size()]);
047:            }
048:
049:            // Initialise static copying details instruction set
050:            private static List sGenerationDetails = new ArrayList();
051:            static {
052:                // Define all files to be generated per servicemodule
053:                {
054:                    GenerationPlan.GenerationDetails lGenerationDef = new GenerationPlan.GenerationDetails();
055:                    lGenerationDef.mReferenceMatchingExpression = "Enterprise/systems\\[(\\w)+\\]/servicemodules\\[(\\w)+\\]";
056:                    lGenerationDef.mResourceFileExpressions = new String[] {
057:                            "webservicestypes.xsd.jamon",
058:                            "jaxrpc.ri.xml.jamon", "web.xml.jamon", };
059:                    lGenerationDef.mDestinationFileExpressions = new String[] {
060:                    // Path to the file
061:                            "#set( $ServicemoduleStylesheet = $StylesheetAccessor.getServicemoduleStylesheet(${Servicemodule}))"
062:                                    + "/${ServicemoduleStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/WebServicesTypes.xsd",
063:
064:                            // Path to the file
065:                            "#set( $ServicemoduleStylesheet = $StylesheetAccessor.getServicemoduleStylesheet(${Servicemodule}))"
066:                                    + "/${ServicemoduleStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/jaxrpc-ri.xml",
067:
068:                            // Path to the file
069:                            "#set( $ServicemoduleStylesheet = $StylesheetAccessor.getServicemoduleStylesheet(${Servicemodule}))"
070:                                    + "/${ServicemoduleStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/web.xml", };
071:                    sGenerationDetails.add(lGenerationDef);
072:                }
073:                // Define all files to be generated per service
074:                {
075:                    GenerationPlan.GenerationDetails lGenerationDef = new GenerationPlan.GenerationDetails();
076:                    lGenerationDef.mReferenceMatchingExpression = "Enterprise/systems\\[(\\w)+\\]/servicemodules\\[(\\w)+\\]/services\\[(\\w)+\\]";
077:                    lGenerationDef.mResourceFileExpressions = new String[] {
078:                            "service.wsdl.jamon", "wscompileconfig.xml.jamon",
079:                            "serviceimpl.java.jamon", };
080:                    lGenerationDef.mDestinationFileExpressions = new String[] {
081:                            "#set( $ServiceStylesheet = $StylesheetAccessor.getServiceStylesheet(${Service}))"
082:                                    + "/${ServiceStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/${ServiceStylesheet.getNormalisedName()}.wsdl",
083:
084:                            "#set( $ServiceStylesheet = $StylesheetAccessor.getServiceStylesheet(${Service}))"
085:                                    + "/${ServiceStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/${ServiceStylesheet.getNormalisedName()}_wscompileconfig.xml",
086:
087:                            "#set( $ServiceStylesheet = $StylesheetAccessor.getServiceStylesheet(${Service}))"
088:                                    + "/${ServiceStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/${ServiceStylesheet.getNormalisedName().toLowerCase()}/WebServicePortImpl.java", };
089:                    sGenerationDetails.add(lGenerationDef);
090:                }
091:                // Define all files to be generated per operation
092:                {
093:                    GenerationPlan.GenerationDetails lGenerationDef = new GenerationPlan.GenerationDetails();
094:                    lGenerationDef.mReferenceMatchingExpression = "Enterprise/systems\\[(\\w)+\\]/servicemodules\\[(\\w)+\\]/services\\[(\\w)+\\]/operations\\[(\\w)+\\]";
095:                    lGenerationDef.mResourceFileExpressions = new String[] {
096:                            "operationinputtranslator.java.jamon",
097:                            "operationresulttranslator.java.jamon", };
098:                    lGenerationDef.mDestinationFileExpressions = new String[] {
099:                    // Path to the input translator
100:                            "#set( $OperationStylesheet = $StylesheetAccessor.getOperationStylesheet(${Operation}))"
101:                                    + "#set( $ServiceStylesheet = $StylesheetAccessor.getServiceStylesheet(${Operation.getService()}))"
102:                                    + "/${ServiceStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/${ServiceStylesheet.getNormalisedName().toLowerCase()}/${OperationStylesheet.getInputProxyTranslatorInnerClassName()}.java",
103:
104:                            // Path to the result translator
105:                            "#set( $OperationStylesheet = $StylesheetAccessor.getOperationStylesheet(${Operation}))"
106:                                    + "#set( $ServiceStylesheet = $StylesheetAccessor.getServiceStylesheet(${Operation.getService()}))"
107:                                    + "/${ServiceStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/${ServiceStylesheet.getNormalisedName().toLowerCase()}/${OperationStylesheet.getResultProxyTranslatorInnerClassName()}.java", };
108:                    sGenerationDetails.add(lGenerationDef);
109:                }
110:                // Define all files to be generated per structure
111:                {
112:                    GenerationPlan.GenerationDetails lGenerationDef = new GenerationPlan.GenerationDetails();
113:                    lGenerationDef.mReferenceMatchingExpression = "Enterprise/systems\\[(\\w)+\\]/servicemodules\\[(\\w)+\\]/structures\\[(\\w)+\\]";
114:                    lGenerationDef.mResourceFileExpressions = new String[] { "structuretranslator.java.jamon", };
115:                    lGenerationDef.mDestinationFileExpressions = new String[] {
116:                    // Path to the translator
117:                    "#set( $StructureStylesheet = $StylesheetAccessor.getStructureStylesheet(${Structure}))"
118:                            + "#set( $ServicemoduleStylesheet = $StylesheetAccessor.getServicemoduleStylesheet(${Structure.getServicemodule()}))"
119:                            + "/${ServicemoduleStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/${StructureStylesheet.getProxyTranslatorClassName()}.java", };
120:                    sGenerationDetails.add(lGenerationDef);
121:                }
122:                // Define all files to be generated per message
123:                {
124:                    GenerationPlan.GenerationDetails lGenerationDef = new GenerationPlan.GenerationDetails();
125:                    lGenerationDef.mReferenceMatchingExpression = "Enterprise/systems\\[(\\w)+\\]/servicemodules\\[(\\w)+\\]/messages\\[(\\w)+\\]";
126:                    lGenerationDef.mResourceFileExpressions = new String[] { "messagetranslator.java.jamon", };
127:                    lGenerationDef.mDestinationFileExpressions = new String[] {
128:                    // Path to the translator
129:                    "#set( $MessageStylesheet = $StylesheetAccessor.getMessageStylesheet(${Message}))"
130:                            + "#set( $ServicemoduleStylesheet = $StylesheetAccessor.getServicemoduleStylesheet(${Message.getServicemodule()}))"
131:                            + "/${ServicemoduleStylesheet.getAdapterRootPackageDir()}/soap/tomcatjwsdp/${MessageStylesheet.getProxyTranslatorClassName()}.java", };
132:                    sGenerationDetails.add(lGenerationDef);
133:                }
134:            }
135:
136:            /** Returns array of instructions for generating files */
137:            public GenerationDetails[] getGenerationDetails() {
138:                return (GenerationPlan.GenerationDetails[]) sGenerationDetails
139:                        .toArray(new GenerationPlan.GenerationDetails[sGenerationDetails
140:                                .size()]);
141:            }
142:        }
w_w___w__.___j__a___va2_s.c_o_m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.