Return an instance (possibly shared or independent) of the given object name.
The instance of the object.
Provides a measure of type safety by throwing an exception if the object is not of the required Type.
This method allows an object factory to be used as a replacement for the Singleton or Prototype design pattern.
Note that callers should retain references to returned objects. There is no guarantee that this method will be implemented to be efficient. For example, it may be synchronized, or may need to run an RDBMS query.
Will ask the parent factory if the object cannot be found in this factory instance.
|NoSuchObjectDefinitionException||If there's no such object definition.|
|ObjectsException||If the object could not be created.|
|ObjectNotOfRequiredTypeException||If the object is not of the required type.|