Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • Gynamee - A class that will be or has been Gynamized with a Gynamo
  • Gynamo - A class that extends the gynamo.Gynamo abstract base class and specifies functionality that will be injected into to Gynamees
  • Gynamize - The process of injecting the functionality specified by a Gynamo into a Gynamee

Example

Code Block
java
java
titleAn example Gynameejava
class Square
{
	def size
}
Code Block
java
java
titleAn example Gynamojava
import gynamo.*
class AreaGynamo extends Gynamo
{
	def getArea = {->
		return delegate.size * delegate.size
	}
}
Code Block
java
java
titleGynamizationjava
import gynamo.*

Gynamo.gynamize(Square, AreaGynamo)

def s = new Square(size: 10)
assert s.area == 100

...