Books
in black and white
Main menu
Share a book About us Home
Books
Biology Business Chemistry Computers Culture Economics Fiction Games Guide History Management Mathematical Medicine Mental Fitnes Physics Psychology Scince Sport Technics
Ads

More Java Pitfalls Share Reactor - Daconta M,C.

Daconta M,C. More Java Pitfalls Share Reactor - Wiley publishing, 2003. - 476 p.
ISBN: 0-471-23751-5
Download (direct link): morejavapitfallssharereactor2003.pdf
Previous << 1 .. 157 158 159 160 161 162 < 163 > 164 165 .. 166 >> Next

abstracting details, bad example of, 39-40 acceptConnections() method, 33 AssertionExample.java, 61 assertions, postconditions, 63-64 authenticate() method, 42-44 BadExecJavac.java, 5-6 BadWinRedirect.java, 12 BmpWriter3.java, 23-25 caching, generateTests.java, 205-207 concurrent results sets, 354-358 connections, in servlets, 279-285 DII hard-coded calls, 423-424 DOM tree, searching BadDomLookup.java, 67 GoodDomLookup.java, 69-71 XpathLookup.java, 72-73 doPost(), 208-209 dynamic proxies, 421-422 environment variables, 109 FileHandler class, XML-formatted output from, 50
files
BadFileRename.java, 153-154 GoodFileRename.java, 155-156 GoodWindowsExec.java, 9-10 GoodWinRedirect.java, 13-14 ImageAnnotationServer.java, 27-29 JaxpSave.java, 74-75
450 Index
listings (continued)
JdomSave.java, 79 JLayeredPane class BadLayeredPane.java, 147-148 GoodLayeredPane.java, 150 JUnit tests AllTests.java, 100 dbQueryBean.java, 105 dbQueryCase.java, 105-107 employeeFormBean.java, 101-102 employeeFormBeanTestCase.java, 102-103 lifecycle_build.xml, 89 Little Endian byte operations, 22 LocalEJBServlet, 345 logging, BadLoggerExample, 45-49 makeCall() method, 404-406 MediocreExecJavac.java, 7 Memento pattern, 439-441 mouse button portability BadRightMouseButton.java, 81-83 GoodRightMouseButton.java, 85-86 navigation BadNavigationUtils.java, 114-115 GoodNavigationUtils.java, 116 Navigation.xml, 113 optional packages, versioning and sealing, 112 preferences, storing user, 37 prepared statements, 376-377 printMetaDataStuff(), 358-359 properties, preferences file, 35-36 querying, by concept, 415-417 RemoteEJBServlet, 342-344 ScheduleSwitcher.java, 53-56 servlets
instance variables in, 269-271, 276-277 output mechanisms in, 292-293, 296-297 reading files from, 303, 305-306 session synchronization, 437-438 setSize() method, 123-125 Singletons global variables as, 120-121 instantiated at class loading time, 118 instantiated at first call, 118-119 SlowFileCopy.java, 20 SOAPHandler object, 347 SOAPHome object, 345-346 stack tracing, 351-352 strings
BadStringTokenizer.java, 141 GoodStringTokenizer.java, 142-144 TokenCollectionTester.java, 145
submissions, multiple handling, 318-321 preventing, 314-315 TestExec.java, 15-16 UDDI query example, 398-401 URLs, posting BadURLPost.java, 131-132, 134 echocgi.c, 128-130 GoodURLPost.java, 135-136 HTTPClientPost.java, 137-139 validateBean.java, 262-263 Web Application Deployment Descriptor, 308-312 XercesSave.java, 77-78 XML schedule file, 56 Little Endian byte operations, 21-26 load balancing, 335 LocalEJBServlet example, 345 loggers. See java.util.logging package log() method, 60
long getCreationTime() method, 221 long getLastAccessedTime() method, 221 loops, iterating to zero, 190
M
main() method, 47, 121 makeCall() method, 398, 401, 404-406 makePersistent() method, 393 MalformedURLException, 302 Marinescu, Floyd (EJB Design Patterns), 340, 364 Matcher class, 266
m_broker.freeConnection() method, 281 m_broker.getConnection() method, 281 MediocreExecJavac.java, 7 Memento pattern, 438-442 message-drive beans, 366 methods abort(), 393 accept(), 33, 152 actionPerformed(), 177-178 addMode(), 173, 194 addOperation(), 173 addType(), 173 afterBegin(), 434-436 afterCompletion(), 434-435 allocateDirect(), 26 attach(), 31 attachment(), 31 authenticate(), 40, 42-44 beforeCompletion(), 434-435 begin(), 393 boolean isNew(), 221
Index 451
catch(), 295
checksubmitcount(), 315 cloneNode(), 58-59 commandAction(), 177 commit(), 393 convert(), 341 create(), 341, 366, 368-370 createNewFile (), 152 createProxy(), 420 createURL(), 194 delete(), 152, 155, 157 destroy(), 175 Display.getdisplay(), 176 Display.setCurrent(), 177 doAmazonSearch(), 180, 191-192 Document.cloneNode(), 59 doFilter(), 245, 252 doGet(), 222, 272, 276, 292 doPost(), 208-209, 222, 279, 281, 375 doStuff (), 423 exec()
BadWinRedirect.java, 12 dir command, 8 method prototypes, list of, 4 Runtime class, 4 exitValue(), 4-5
FileDialog.setFilenameFilter(), 152 File.list(), 152 File.renameTo(), 151, 155 findAssociations(), 401 findByPrimaryKey(), 366 findCallerAssociations(), 401 findClassificationSchemeByName(), 401
findClassificationSchemes(), 401 findConceptByPath(), 401 findConcepts(), 402, 415 findNodeWithContent(), 170 findOrganizations(), 402, 404 findRegistryPackages(), 402 findServiceBindings(), 402 findServices(), 402 FirstCall.getInstance(), 119 flip(), 26
freeConnection(), 285 getActionCmd(), 177 getAttribute(), 318 getBytes(), 137 getChannel(), 25 getClassifications(), 412 getClassifiedObject(), 412 getConnection(), 285, 288
getElementsByTagName(), 180 getExternalLinks(), 403 getExternalURI(), 409 getFirstChildElement(), 71 getGeneratedKeys(), 364 getGUI(), 120 getInitParameter(), 253 getInitParameterNames(), 253 getInputStream(), 11, 130, 134, 182 getInstance(), 117, 119-120, 285 getLabel(), 177 getLevel(), 48 getMinimumSize(), 124 getName(), 180
getNamedDispatcher(), 247, 255, 324 getNextKey(), 362-363 getNodeName(), 180 getNodeValue(), 180 getOutputStream(), 130, 133-134 getPollOfTheDay(), 292 getPort(), 421 getPreferredSize(), 124 getProductNames(), 180 getRealPath(), 304 getResource(), 306 getResourceAsStream(), 306 getRuntime(), 4 getSelectedItem(), 180 getServiceBindings(), 404 getServices(), 404 getSession(), 222, 308 getSpecificationObject(), 409, 415 getString(), 180 getText(), 116, 180 getValue(), 222 getValueNames(), 221 getWriter(), 295 httpGet(), 169, 174, 180, 195 init(), 239, 273-275
Previous << 1 .. 157 158 159 160 161 162 < 163 > 164 165 .. 166 >> Next