Patterns in jdk packages
This years last MOD2 task is to find and document at least
four (4) different applications of patterns in a java package
assigned to you(r group). These package come from the java jdk and are
available in source format (in a zip) if you installed the
jdk.
Result
You have to hand in a document that describes the application
of the patterns found in the package. In this description you
fill out the following template:
- Name of the package
- Names of the classes involved in the pattern instance and
the roles in the pattern.
- The reason why this is an instance of the pattern you
think it is.
- Example code using this pattern, showing its use.<>
Strategy for this task
To fulfil this task you might want to follow this strategy
- Start with reading the package description. Example:
java.nio
- From there look for any class hierarchy. In java.nio that
would be something below Buffer for instance.
- Look for members of (1) types from this packages in the classes
or for (2)types of classes outside the package. Avoid the last
one if you can, although you will not always be able to.
- Try to stay bin the documentation (javadoc level) as long as
possible, making assumptions on the patterns used and verify
that assumption
Packages for investigation.
Each group of four students gets assigned one of the following
packages:
- java.io
- java.nio
- java.util.jar
- java.util.logging
- java.util.zip
- java.net
- javax.net
- java.rmi
- java.security
- javax.crypto
- java.text
Group assignment will be done at the start of the lab hours.