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
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultObjectFactory

      public DefaultObjectFactory(Configuration configuration)
  • Method Details

    • 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 interface ObjectFactory
      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 interface ObjectFactory
      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.