Slide 5
Slide 5 text
The Object Graph
Out of the box the language supports only a single object
- new, equals(), hash(), =, finalize()
There is no support for the object graph with callbacks like
- onCreation(), onReference(), onUse()
The work to handle the object graph is left on the programmer.
To make things more difficult, not all objects are the same. Some are expensive
(DBConnection), some are for a lifetime(ApplicationMonitor), some can be
reused (HttpConnection), some are immutable(Long), some are in flux
(ConcurrentHashMap), some are scoped(HttpRequest), some are OS
dependent(Socket) and so on...
This leads to ...