aboutsummaryrefslogtreecommitdiffstats
path: root/docs/sandbox/ubc-design-patterns
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2021-06-29 13:18:25 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2024-01-06 10:09:11 +0100
commitebbc41255384e85db03c4eb6aae4e6464803d0a9 (patch)
tree4d90f6d206ec43bef21eb601161785c4502d358e /docs/sandbox/ubc-design-patterns
parent0ba9f25b0e5deb638f6e7472141f4edc4450c99b (diff)
downloadaspectj-ebbc41255384e85db03c4eb6aae4e6464803d0a9.tar.gz
aspectj-ebbc41255384e85db03c4eb6aae4e6464803d0a9.zip
Add initial set of AsciiDoc files, converted from HTML/XML
Some originals have been deleted already. Others, especially the user guides, still exist in both formats because they have not been proof-read and probably lots of links do not function as expected. But I want to see what the files look like directly on GitHun. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'docs/sandbox/ubc-design-patterns')
-rw-r--r--docs/sandbox/ubc-design-patterns/docs/readme.adoc (renamed from docs/sandbox/ubc-design-patterns/docs/readme.txt)56
-rw-r--r--docs/sandbox/ubc-design-patterns/docs/readme.pdfbin13954 -> 0 bytes
-rw-r--r--docs/sandbox/ubc-design-patterns/patterns-readme.adoc23
-rw-r--r--docs/sandbox/ubc-design-patterns/patterns-readme.html40
4 files changed, 53 insertions, 66 deletions
diff --git a/docs/sandbox/ubc-design-patterns/docs/readme.txt b/docs/sandbox/ubc-design-patterns/docs/readme.adoc
index 8908cf8b6..f485a54f0 100644
--- a/docs/sandbox/ubc-design-patterns/docs/readme.txt
+++ b/docs/sandbox/ubc-design-patterns/docs/readme.adoc
@@ -1,55 +1,59 @@
-Implementations of GoF Design Patterns in Java and AspectJ
-Code base documentation (April 2, 2004)
+= Implementations of GoF Design Patterns in Java and AspectJ
+_Code base documentation (April 2, 2004)_
+
+== Overview
-Overview
The goal was to provide parallel implementations in AspectJ and Java that allow for direct comparisons. It has to be noted that most patterns offer variability in the implementation approach. We choose the one that appeared to be the most general. Sometimes, the AspectJ version implements a slightly different (or additional) case(s). This is due to the fact that AJ sometimes allows for additional functionality. Please refer to the web page and our OOPSLA '02 paper for a detailed description of this work.
-Example Setup
-All pattern examples have a class called Main. This class is the driver for the particular example. The Main classes are extensively documented using ajdoc, describing the experimental setup and the assignment of roles to participants. In most cases, the differences between Java and AspectJ implementations are also mentioned.
+== Example Setup
+
+All pattern examples have a class called `Main`. This class is the driver for the particular example. The Main classes are extensively documented using ajdoc, describing the experimental setup and the assignment of roles to participants. In most cases, the differences between Java and AspectJ implementations are also mentioned.
+
+== Documentation (ajdoc)
-Documentation (ajdoc)
-While all files are extensively documented using ajdoc (the AspectJ version of javadoc), ajdoc is not yet compatible with the later AspectJ releases, so it is currently not possible to generate HTML documents from it. This will be added when ajdoc is updated.
+While all files are extensively documented using ajdoc (the AspectJ version of javadoc), ajdoc is not yet compatible with the later AspectJ releases, so it is currently not possible to generate HTML documents from it. This will be added when ajdoc is updated.
Within the ajdoc documentation, we tried to separate type names used in our examples from role names (as presented in GoF). We show roles names in italics and actual type names in code font.
-Questions, feedback, suggestions, etc.
-The AODP web page is http://www.cs.ubc.ca/labs/spl/aodp.html
-Please send all questions, feedback, and suggestions to Jan Hannemann (jan [AT] cs.ubc.ca). We are very much interested in improving our code. Please do not hesitate to drop us a line.
+== Questions, feedback, suggestions, etc.
+The AODP web page is http://www.cs.ubc.ca/labs/spl/aodp.html
-===============================
+Please send all questions, feedback, and suggestions to Jan Hannemann (jan [AT] cs.ubc.ca). We are very much interested in improving our code. Please do not hesitate to drop us a line.
+== Appendix
-Appendix
This appendix outlines how to compile and run the examples provided. DOS batch files exist that automate these tasks somewhat. Note that the batch files only work in Windows environments. The following is a list of tasks and a description of what commands accomplish them. For compiling, running and generating documentation, two options are given. The first one is using a provided script; the second is the standard command-line option (longer, but will work on all operation systems).
+=== Using the Eclipse IDE
-A1: Using the Eclipse IDE
Setting up your system and running the examples
-1. Install Eclipse (www.eclipse.org) and AJDT (www.eclipse.org/ajdt). Currently AJDT only works with release 2.1.X and not with version 3.0+ of Eclipse. Check the AJDT web page for more information and updates.
+
+1. Install https://www.eclipse.org[Eclipse] and https://www.eclipse.org/ajdt[AJDT]. Currently, AJDT only works with release 2.1.X and not with version 3.0+ of Eclipse. Check the AJDT web page for more information and updates.
2. Import the ZIP file with the AOP pattern examples into Eclipse
3. Compile & run
-A2: Using other AspectJ-compatible IDEs
-Note: the code base has not been tested with other IDEs. Chances are that this will work similar to the above, though.
+=== Using other AspectJ-compatible IDEs
+Note: The code base has not been tested with other IDEs. Chances are that this will work similar to the above, though.
+
+=== Using command-line compilation
-A3: Using command-line compilation
Setting up your system
+
1. Install Java (version 1.4+) and AspectJ (version 1.1+)
-2. Extract the ZIP file into a directory of your choice
-3. Make sure your CLASSPATH contains the example's src directory
+2. Extract the ZIP file into a directory of your choice
+3. Make sure your `CLASSPATH` contains the example's src directory
4. Change to that directory
Compile Java and AspectJ versions the design pattern examples. Choose one:
-* Use the buildAllPatterns batch file (just call it from the examples root directory. Needs no arguments).
-* ajc -d bin @src/allPatterns.lst
-Run a compiled example (e.g. observer). Choose one:
-* testPattern observer (this runs both Java and AspectJ versions)
-* java ca.ubc.cs.spl.aspectPatterns.examples.observer.java.Main (for the Java version),
-java ca.ubc.cs.spl.aspectPatterns.examples.observer.java.Main (for the AspectJ version)
+* Use the `buildAllPatterns` batch file (just call it from the examples root directory. Needs no arguments).
+* `ajc -d bin @src/allPatterns.lst`
+Run a compiled example (e.g. Observer). Choose one:
- April 2, 2004
+* Test pattern Observer (this runs both Java and AspectJ versions)
+** `java ca.ubc.cs.spl.aspectPatterns.examples.observer.java.Main` for the Java version,
+** `java ca.ubc.cs.spl.aspectPatterns.examples.observer.java.Main` for the AspectJ version
diff --git a/docs/sandbox/ubc-design-patterns/docs/readme.pdf b/docs/sandbox/ubc-design-patterns/docs/readme.pdf
deleted file mode 100644
index cde37b24b..000000000
--- a/docs/sandbox/ubc-design-patterns/docs/readme.pdf
+++ /dev/null
Binary files differ
diff --git a/docs/sandbox/ubc-design-patterns/patterns-readme.adoc b/docs/sandbox/ubc-design-patterns/patterns-readme.adoc
new file mode 100644
index 000000000..501677747
--- /dev/null
+++ b/docs/sandbox/ubc-design-patterns/patterns-readme.adoc
@@ -0,0 +1,23 @@
+== AspectJ Patterns
+
+_Last updated: 2004-03-31 by wisberg_
+
+This directory contains Java and AspectJ implementations of the patterns
+described in the "Design Patterns" book by the so-called gang-of-four
+(Gamma, Helm, Johnson, Vlissides). Jan Hannemann from UBC contributed
+the code under the Mozilla Public License 1.0. For more details, see
+xref:docs/readme.adoc[].
+
+Build options
+
+* To build the code manually with ajc, use the corresponding build.lst
+ files, creating the aspect library first (to create lib.jar).
+* Ajbrowser and the other IDE support does not support options like
+ sourceroots or -outjar in the .lst files, so you'll have to create new
+ .lst files if you want to build portions of the project in an IDE.
+* To build with eclipse, there are .project and .classpath files, but
+ you will need to adjust the `aspectjrt.jar` entry after importing the
+ project.
+* To build for testing, see patterns-test.xml.
+
+Enjoy!
diff --git a/docs/sandbox/ubc-design-patterns/patterns-readme.html b/docs/sandbox/ubc-design-patterns/patterns-readme.html
deleted file mode 100644
index 4230c97e3..000000000
--- a/docs/sandbox/ubc-design-patterns/patterns-readme.html
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
-<head><title>AspectJ Patterns</title>
-</head>
-<body>
-<h3>AspectJ Patterns</h3>
-<p>
- This directory contains
- Java and AspectJ implementations of the patterns described
- in the "Design Patterns" book by the so-called gang-of-four
- (Gamma, Helm, Johnson, Vlissides).
- Jan Hannemann from UBC contributed the code
- under the Mozilla Public License 1.0.
- For more details, see <a href="docs/readme-1.1.txt">docs/readme-1.1.txt</a>
- or <a href="docs/readme-1.1.pdf">docs/readme-1.1.pdf</a>.
-</p>
-<p>
- Build options
-<ul>
-<li>
- To build the code manually with ajc, use the corresponding build.lst files,
- creating the aspect library first (to create lib.jar).
-</li>
-<li> Ajbrowser and the other IDE support does not support options like sourceroots
- or -outjar in the .lst files, so you'll have to create new .lst files if
- you want to build portions of the project in an IDE. </li>
-<li>
- To build with eclipse, there are <a href=".project">.project</a>
- and <a href=".classpath">.classpath</a> files, but you will need
- to adjust the <code>aspectjrt.jar</code> entry after importing the project.
-</li>
-<li>
- To build for testing, see <a href="patterns-test.xml">patterns-test.xml</a>.
-</li>
-</ul>
-<p>
- Enjoy!
-</p>
-</body>
-</html>
-