Dejan Bosanac9780321321930, 0-321-32193-6
Table of contents :
Scripting in java……Page 1
CONTENTS……Page 8
PREFACE……Page 18
PART I……Page 24
CHAPTER 1 INTRODUCTION TO SCRIPTING……Page 26
BACKGROUND……Page 27
DEFINITION OF A SCRIPTING LANGUAGE……Page 31
SCRIPTING LANGUAGES AND VIRTUAL MACHINES……Page 47
A COMPARISON OF SCRIPTING AND SYSTEM PROGRAMMING……Page 49
THE HYBRID APPROACH……Page 58
A CASE FOR SCRIPTING……Page 60
CONCLUSION……Page 61
CHAPTER 2 APPROPRIATE APPLICATIONS FOR SCRIPTING LANGUAGES……Page 62
WIRING……Page 63
PROTOTYPING……Page 67
CUSTOMIZATION……Page 72
SOFTWARE DEVELOPMENT SUPPORT……Page 74
ADMINISTRATION AND MANAGEMENT……Page 78
USER INTERFACE PROGRAMMING……Page 81
USE CASES……Page 82
ADDITIONAL CHARACTERISTICS……Page 92
CONCLUSION……Page 95
PART II……Page 98
CHAPTER 3 SCRIPTING LANGUAGES INSIDE THE JVM……Page 100
UNDER THE HOOD……Page 103
SCRIPTING LANGUAGE CONCEPTS……Page 105
BEANSHELL……Page 106
JYTHON……Page 121
RHINO……Page 133
GROOVY……Page 143
OTHER SCRIPTING LANGUAGES……Page 145
CONCLUSION……Page 146
CHAPTER 4 GROOVY……Page 148
WHY GROOVY?……Page 149
RUNNING GROOVY SCRIPTS……Page 150
COMPILING GROOVY SCRIPTS……Page 153
SCRIPT STRUCTURE……Page 156
LANGUAGE SYNTAX……Page 160
SYSTEM OPERATIONS……Page 201
EMBEDDING WITH JAVA……Page 207
SECURITY……Page 213
CONCLUSION……Page 217
CHAPTER 5 ADVANCED GROOVY PROGRAMMING……Page 218
GROOVYSQL……Page 219
GROOVLETS……Page 235
GROOVY TEMPLATES……Page 243
GROOVYMARKUP……Page 246
GROOVY AND SWING……Page 259
CONCLUSION……Page 266
CHAPTER 6 BEAN SCRIPTING FRAMEWORK……Page 268
INTRODUCTION TO THE BEAN SCRIPTING FRAMEWORK……Page 269
GETTING STARTED……Page 270
BASIC CONCEPTS……Page 271
WORKING WITH SCRIPT FILES……Page 280
METHODS AND FUNCTIONS……Page 282
DATA BINDING……Page 287
COMPILATION……Page 293
APPLICATIONS……Page 298
CONCLUSION……Page 311
PART III……Page 312
CHAPTER 7 PRACTICAL SCRIPTING IN JAVA……Page 314
UNIT TESTING……Page 315
INTERACTIVE DEBUGGING……Page 327
BUILD TOOLS (ANT SCRIPTING)……Page 332
SHELL SCRIPTING……Page 346
ADMINISTRATION AND MANAGEMENT……Page 351
CONCLUSION……Page 357
CHAPTER 8 SCRIPTING PATTERNS……Page 358
SCRIPTED COMPONENTS PATTERN……Page 360
MEDIATOR PATTERN (GLUE CODE PATTERN)……Page 364
SCRIPT OBJECT FACTORY PATTERN……Page 377
OBSERVER (BROADCASTERS) PATTERN……Page 382
EXTENSION POINT PATTERN……Page 392
ACTIVE FILE PATTERN……Page 398
CONCLUSION……Page 403
PART IV……Page 406
CHAPTER 9 SCRIPTING API……Page 408
MOTIVATION AND HISTORY……Page 409
INTRODUCTION……Page 411
GETTING STARTED……Page 413
DISCOVERY MECHANISM……Page 414
ENGINE METADATA……Page 416
CREATING AND REGISTERING SCRIPTING ENGINES……Page 418
EVALUATION……Page 423
ScriptException……Page 426
BINDING……Page 427
CODE GENERATION……Page 451
ADDITIONAL ENGINE INTERFACES……Page 455
THREADING……Page 463
DYNAMIC BINDINGS……Page 465
CONCLUSION……Page 468
CHAPTER 10 WEB SCRIPTING FRAMEWORK……Page 470
ARCHITECTURE……Page 471
GETTING STARTED……Page 476
CONFIGURATION……Page 479
BINDINGS……Page 485
INCLUDE METHOD……Page 492
FORWARD METHOD……Page 494
SESSION SHARING……Page 496
LANGUAGE TAGS……Page 501
THREADING ISSUES……Page 504
ARCHITECTURAL CHALLENGES……Page 505
CONCLUSION……Page 511
PART V……Page 512
DOWNLOAD INSTRUCTIONS……Page 514
TESTING GROOVY……Page 515
INSTALLATION……Page 518
USAGE……Page 520
APPENDIX C: INSTALLING JSR 223……Page 522
INSTALLATION……Page 523
A……Page 526
B……Page 527
C……Page 528
D……Page 529
E……Page 530
F……Page 531
G……Page 532
I……Page 534
J……Page 535
K-L……Page 536
M……Page 540
O……Page 542
P……Page 543
Q-R……Page 544
S……Page 545
T……Page 549
W……Page 550
X–Z……Page 551
Reviews
There are no reviews yet.