Class DefaultObjectFactory
- java.lang.Object
-
- org.pentaho.reporting.libraries.base.boot.DefaultObjectFactory
-
- All Implemented Interfaces:
ObjectFactory
public class DefaultObjectFactory extends Object implements ObjectFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultObjectFactory(Configuration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(Class<T> interfaceClass)
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
get(Class<T> interfaceClass, String key)
Retrieves an instance of a Pentaho BI Server API interface by the given object key.
-
-
-
Constructor Detail
-
DefaultObjectFactory
public DefaultObjectFactory(Configuration configuration)
-
-
Method Detail
-
get
public <T> T get(Class<T> interfaceClass)
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
public <T> T get(Class<T> interfaceClass, String key)
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.
-
-