-
Notifications
You must be signed in to change notification settings - Fork 23
/
toc.txt
418 lines (209 loc) · 7.45 KB
/
toc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
The Definitive Guide to Jython
Authors: Josh Juneau
Frank Wierzbicki
Jim Baker
Leo Soto
Victor Ng
Page Count Estimate: 341 - 392
Table of Contents
Copyright and Licensing
About the Authors
Acknowledgements
Part I: Jython Basics: Learning the Language
Chapter 1: Language and Syntax (Josh - FD COMPLETE) (pages: 20-23)
The Difference Between Jython and Python
Installing and Configuring Jython
Identifiers and Declaring Variables
Reserved Words
Coding Structure
Operators
Expressions
Statements
If-Else Statement
pass Statement
def Statement
print Statement
try-except-finally
assert Statement
raise Statement
import Statement
Other Python Statements
Iteration
While Loop
For Loop
continue Statement
break Statement
Documenting Code
Python Help
Summary
Chapter 2: Data Types and Referencing (Josh - FD COMPLETE) (pages: 22-25)
Python Data Types
Strings and String Methods
String Formatting
Ranges
Lists, Dictionaries, and Tuples
Lists
Traversing and Searching Lists
List Comprehensions
Dictionaries
Sets
Tuples
Jython Specific Collections
Files
Iterators
Referencing and Copies
Garbage Collection
Summary
Chapter 3: Operators, Expressions, and Program Flow (Josh - FD COMPLETE) (pages: 10-12)
Types of Expressions
Mathematical Operations
Boolean Expressions
Conversions
Program Flow
Example Code
Summary
Chapter 4: Defining Functions and Using Built-Ins (Jim - Not Yet Complete (10-18-2009)) (pages: 25-28)
Function Syntax and Basics
Parameter Usage
Calling Functions
Special Functions
Generators
Coroutines
Decorators
Using Built-In Functions
Using __future__
Chapter 5: Input and Output (Josh - FD Complete) (pages: 9)
Input from Keyboard
sys.stdin and raw_input
Obtaining Variables from Jython Environment
File I/O
Pickle
Output Techniques
Conclusion
Chapter 6: Object Oriented Jython (Victor Ng - FD COMPLETE) (pages: 12-15)
Using Classes
Encapsulation and Abstraction
Inheritance and Overloading
Closures and Passing Objects
Chapter 7: Exception Handling and Debugging (Josh - FD COMPLETE) (pages: 12-15)
Exception Handling Syntax and Differences with Java
Catching Exceptions
Raising Exeptions
Defining Your Own Exceptions
Issuing Warnings
Assertions and Debugging
Context Managers
Summary
Chapter 8: Modules, Packages, and Reuse (Frank Wierzbicki - FD COMPLETE) (pages: 14)
Imports for Reuse
Definitions
The import Statement
An Example Program
Trying out the Example Code
Types of import Statements
Basic Import Statements
from import Statements
Relative import Statements
Aliasing import Statements
Hiding Module Names
Module Search Path, Compilation, and Loading
Compilation
Module search Path and Loading
Import Hooks
sys.path_hooks
sys.meta_path
Java Package Scanning
How Jython Finds the Jars and Classes to Scan
Python Modules and Packages vs. Java Packages
sys.path
Naming Python Modules and Packages
Proper Python Naming
Java Import Example
Conclusion
Part II: Using the Language
Chapter 9: Scripting with Jython (Frank Wierzbicki - FD Complete) (pages: 4)
Learning the Command Line
Using Modules and Java Libraries
Chapter 10: Java and Jython Integration (Josh - FD Complete) (pages: 24)
Using Jython within Java Applications
A Bit of History
Object Factories
One-to-One Jython Object Factories
Making Use of a Loosely Coupled Object Factory
Returning __doc__ Strings
Applying the Design to Different Object Types
JSR-223
Utilizing PythonInterpreter
Using Java within Jython Applications
Chapter 11: Using Jython in an IDE (Josh & Leo Soto - FD Complete) (pages: 34)
Eclipse
PyDev
Netbeans
Setting Up Your Environment
Developing Jython Applications
Mixing Jython and Java Code
WebSphere
Chapter 12: Databases and Jython (Josh & Jim - 08/24/2009) (pages: 20-23)
Making Use of the dbm Module
Using JDBC in Jython
zxJDBC - Using Python's DB API via JDBC
Connections
Cursors
Querying
DML
DDL
Object Relational Mapping
SQLAlchemy
Hibernate
Conclusion
Part III: Developing Applications with Jython
Chapter 13: Simple Web Applications (Josh - FD Complete) (pages: 14) (updated draft on 08/14)
Servlets
Applets and Web Start
WSGI and modjy
Conclusion
Chapter 14: Web Applications with Django (Leo Soto, Victor Ng - FD Complete) (pages: 39)
J2EE Deployment and Integration
Deploying your First Application
Disabling Postgresql Logins
A Note about WAR Files
Extended Installation
Connection Pooling with J2EE
Integrating with Threadpools
Integrating with JMS
Chapter 15: Web Applications with Pylons (Victor Ng - FD Complete) (pages: 16)
A Guide for the Impatient
A Note About Paste
Pylons MVC
An Interlude into Java's Memory Model
Invoking the Pylons Shell
Context Variables and Application Globals
Routes
Controllers and Templates
Adding in a JSON API
Unit Testing, Functional Testing, and Logging
Deployment to a Servlet Container
Conclusion
**REMOVE** (Renamed remainder of chapters) Chapter 16: Web Services and SOA (remove) (pages: 23-25)
JAX-WS
JAX-RS
JAXB and Legacy JAX-RPC Support
Chapter 16: GUI Applications (Frank Wierzbicki - FD Complete) (pages: 9-10)
Chapter 17: Deployment Targets (Josh - FD Complete) (pages: 16-17)
Application Servers
Tomcat
Glassfish
Google App Engine
Java Store
Mobile
Conclusion
Part IV: Strategy and Technique
Chapter 18: Testing and Continuous Integration (Leo Soto - FD Complete) (pages: 23-25)
Grinder
Push-To-Test TestMaker
Chapter 19: Concurrency and Parallelism (Jim - Not Yet Complete(10-18-2009)) (pages: 18-20)
High-Level Concurrency
Greenlets
Appendix A: Using other tools with Jython
Appendix B: Jython Cookbook - A compilation of community submitted code examples
Appendix C: Built-in Functions