register


Description:

public void register (Type basetype, Type subtype)

Register subtype as the instantiation class for basetype.

Each time an object of type basetype is going to be created, an instance of subtype is created instead. basetype must be subclassed from ObjectFactoryBase.

Parameters:

this

a ObjectFactory.

basetype

a Type.

subtype

a Type.