A factory object for providing instances by either referencing their classname
(through the
type attribute, or a
MuleRegistry reference (through the
ref one.
When the
type attribute is used to reference a type, then a new instance is returned each time
that
getObject(MuleContext) is invoked. That type is also expected to have a public default
Constructor.
When a
ref is provided,
then that value is searched by using the
Registry.get(String). Notice however that the reference will
be re fetched each time that
getObject(MuleContext) is invoked
The
type and
ref attributes are mutually exclusive. A
IllegalArgumentException is thrown
if both are set by the time
getObject(MuleContext) is invoked. The same exception is also thrown
if none of them are.
Instances of this class are to be considered thread-safe and reusable.