Class DefaultObjectFactory
java.lang.Object
org.pentaho.reporting.libraries.base.boot.DefaultObjectFactory
- All Implemented Interfaces:
ObjectFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
Retrieves an instance of a Pentaho BI Server API interface using the simple interface name (interfaceClass name without the package) as the object key.<T> T
Retrieves an instance of a Pentaho BI Server API interface by the given object key.
-
Constructor Details
-
DefaultObjectFactory
-
-
Method Details
-
get
Description copied from interface:ObjectFactory
Retrieves an instance of a Pentaho BI Server API interface using the simple interface name (interfaceClass name without the package) as the object key. If an appropriate implementation does not exist the factory implementation should create it.- Specified by:
get
in interfaceObjectFactory
- Parameters:
interfaceClass
- the type of object to retrieve (retrieved object will be returned as this type)- Returns:
- the implementation object typed to interfaceClass, never null.
-
get
Description copied from interface:ObjectFactory
Retrieves an instance of a Pentaho BI Server API interface by the given object key. If an appropriate implementation does not exist the factory implementation should create it.- Specified by:
get
in interfaceObjectFactory
- Parameters:
interfaceClass
- the type of object to retrieve (retrieved object will be returned as this type)key
- the object identifier, typically the interface name- Returns:
- the implementation object typed to interfaceClass, never null.
-