views:

22

answers:

0

I can see in dom4j library a number of classes with Flyweight prefix: FlyweightAttribute, FlyweightComment, FlyweightText etc. Here is what java doc is saying in the case of FlyweightText:

FlyweightText is a Flyweight pattern implementation of a singly linked, read-only XML Text. This node could be shared across documents and elements though it does not support the parent relationship.

However, I can't seem to find in the code instance pool nor where these instances are shared between documents.

Is this feature implemented at all in the library? If yes, where is the code that implements it?