Class DefaultObjectFactory

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