Skip to main content

atin sood's Library tagged java   View Popular

29 May 08

Annotations

  • Annotations
  • Annotations can be read from
    source files, class files, or reflectively at run time.
  • 6 more annotations...
30 Apr 08

Java theory and practice: I have to document THAT?

  • If a package, class, or method is hard to document, it's probably trying to do more than one thing at once, and this should be a clue that perhaps it needs to be re-engineered.

    The self-review aspects of documentation make it all the more important that writing Javadoc be done early in the development process and then reviewed periodically as the code evolves, rather than simply waiting until the code is complete and then writing the documentation (if there's any time left).

    • How the method deals with error conditions or bad inputs
    • How error conditions are communicated back to the caller
    • Which specific subclasses of exceptions might be thrown
    • Which values are valid for inputs
    • Class invariants, method preconditions, or method postconditions
    • Side effects
    • Whether there are important linkages between methods
    • How the class deals with an instance being accessed simultaneously from multiple threads
  • 2 more annotations...
25 Apr 08

java.net: Add Logging at Class Load Time with Java Instrumentation

  • You can invoke java with a JVM argument
    -javaagent:youragent.jar or
    -javaagent:youragent.jar=argument to have Java call
    the premain(...) method listed in the manifest of
    youragent.jar before trying to run the main
    method specified.
  • premain(...) method then allows
    you to register a class file transformer with the system
    class loade
  • 6 more annotations...
22 Apr 08

Intro to Design Patterns: Factory Method Pattern | Javalobby

  • Define an interface
  • but let subclasses
    decide which class to instantiate
  • 13 more annotations...

Intro to Design Patterns: Builder Pattern | Javalobby

  • Object Creational
  • simplifies the construction of complex objects
  • 11 more annotations...
1 - 20 of 59 Next › Last »
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo