Direct implementations of
ObjectModelFactory interface can be thought of as "typed" factories in a sense that parameter types of
newChild,
addChild and
setValue methods (discovered by the framework at runtime with introspection) are supposed to be of specific Java classes (other than
java.lang.Object) from the target class hierarchy.
In this interface,
newChild,
addChild and
setValue methods are defined with arguments of type
java.lang.Object.
The framework won't introspect an implementation of this interface for "typed" implementations of
newChild,
addChild and
setValue methods. Instead it will call the declared generic methods and it's the responsibility of the implementation of this interface to recognize the types and build the object graph appropriately.
@author
Alexey Loubyansky
@version
$Revision: 1455 $