public class DefaultObjectFactory extends Object implements ObjectFactory
| Constructor and Description |
|---|
DefaultObjectFactory(Configuration configuration) |
| Modifier and Type | Method and 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.
|
public DefaultObjectFactory(Configuration configuration)
public <T> T get(Class<T> interfaceClass)
ObjectFactoryget in interface ObjectFactoryinterfaceClass - the type of object to retrieve (retrieved object will be
returned as this type)public <T> T get(Class<T> interfaceClass, String key)
ObjectFactoryget in interface ObjectFactoryinterfaceClass - the type of object to retrieve (retrieved object will be
returned as this type)key - the object identifier, typically the interface name