Source Code Cross Referenced for Run.java in  » Web-Services » crispy » net » sf » crispy » sample » wortschatz » 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 » Web Services » crispy » net.sf.crispy.sample.wortschatz 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package net.sf.crispy.sample.wortschatz;
002:
003:        import java.util.List;
004:        import java.util.Properties;
005:
006:        import net.sf.crispy.IServiceManager;
007:        import net.sf.crispy.Property;
008:        import net.sf.crispy.interceptor.StopWatchInterceptor;
009:        import net.sf.crispy.sample.wortschatz.service.Frequencies;
010:        import net.sf.crispy.sample.wortschatz.service.Sentences;
011:        import net.sf.crispy.sample.wortschatz.service.Similarity;
012:        import net.sf.crispy.sample.wortschatz.service.Synonyms;
013:        import net.sf.crispy.sample.wortschatz.service.Thesaurus;
014:        import net.sf.crispy.sample.wortschatz.service.Wordforms;
015:
016:        public class Run {
017:
018:            public static void main(String[] args) {
019:
020:                Properties prop = new Properties();
021:                prop.put(Property.INTERCEPTOR_CLASS, StopWatchInterceptor.class
022:                        .getName());
023:
024:                IServiceManager manager = new WortschatzServiceManager(prop);
025:                StopWatchInterceptor stopWatch = (StopWatchInterceptor) manager
026:                        .getInterceptorByPos(0);
027:
028:                Thesaurus thesaurus = (Thesaurus) manager
029:                        .createService(Thesaurus.class);
030:                System.out.println("PING: " + thesaurus.ping());
031:
032:                List lvResultList = thesaurus.execute("frei", 5)
033:                        .getResultList();
034:                System.out.println("- Thesaurus -");
035:                System.out.println(lvResultList);
036:                System.out.println("StopTime: "
037:                        + stopWatch.getStopTimeInvokeMethod() + "\n");
038:
039:                Wordforms wordform = (Wordforms) manager
040:                        .createService(Wordforms.class);
041:                System.out.println("- Wordforms -");
042:                System.out.println(wordform.execute("leer", 2).getResultList());
043:                System.out.println("StopTime: "
044:                        + stopWatch.getStopTimeInvokeMethod() + "\n");
045:
046:                Similarity similarity = (Similarity) manager
047:                        .createService(Similarity.class);
048:                System.out.println("- Similarity -");
049:                System.out.println(similarity.execute("leer", 2)
050:                        .getResultList());
051:                System.out.println("StopTime: "
052:                        + stopWatch.getStopTimeInvokeMethod() + "\n");
053:
054:                Sentences sentences = (Sentences) manager
055:                        .createService(Sentences.class);
056:                System.out.println("- Sentences -");
057:                System.out
058:                        .println(sentences.execute("leer", 2).getResultList());
059:                System.out.println("StopTime: "
060:                        + stopWatch.getStopTimeInvokeMethod() + "\n");
061:
062:                Frequencies frequencies = (Frequencies) manager
063:                        .createService(Frequencies.class);
064:                System.out.println("- Frequencies -");
065:                System.out.println(frequencies.execute("leer").getResultList());
066:                System.out.println("StopTime: "
067:                        + stopWatch.getStopTimeInvokeMethod() + "\n");
068:
069:                Synonyms synonyms = (Synonyms) manager
070:                        .createService(Synonyms.class);
071:                System.out.println("- Synonyms -");
072:                System.out.println(synonyms.execute("leer", 2).getResultList());
073:                System.out.println("StopTime: "
074:                        + stopWatch.getStopTimeInvokeMethod() + "\n");
075:            }
076:            /*
077:             PING: Webservice "Thesaurus" is ready.
078:             - Thesaurus -
079:             0 frei 
080:             1 leer 
081:             2 brach 
082:             3 trinken 
083:             4 leeren 
084:             StopTime: 191
085:
086:             - Wordforms -
087:             0 leer 
088:             1 leeren 
089:             StopTime: 191
090:
091:             - Synonyms -
092:             0 blanko 
093:             1 leer 
094:             StopTime: 191
095:
096:
097:
098:             - Similarity -
099:             0 leer unbewohnt 12 
100:             1 leer in Flammen 11 
101:             StopTime: 191
102:
103:             - Sentences -
104:             0 40676325 Die Flieger fliegen, aber sie sind halb leer. 
105:             1 40676322 Er sagt, es sei noch nie so leer gewesen. 
106:             StopTime: 191
107:
108:             - Frequencies -
109:             0 18865 10 
110:             StopTime: 191
111:
112:             */
113:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.