Interface IPentahoDefinableObjectFactory

  • All Superinterfaces:
    IPentahoObjectFactory

    public interface IPentahoDefinableObjectFactory
    extends IPentahoObjectFactory
    Deprecated.
    Use the new IPentahoRegistrableObjectFactory facilities available in PentahoSystem
    This class subclasses IPentahoObjectFactory and adds methods that enables the implementation to allow objects to be defined through public classes. The main use case for this is a system where the objects created by the factory are defined in code via an API. Examples are when the Pentaho system is fully embedded into an application, and unit tests.
    Author:
    jamesdixon
    • Method Detail

      • defineObject

        void defineObject​(String key,
                          String className,
                          IPentahoDefinableObjectFactory.Scope scope)
        Deprecated.
        Defines a new object.
        Parameters:
        key - - typically the interface name
        className - - the name of the class to instatiate
        scope - - the scope of the object
      • defineObject

        void defineObject​(String key,
                          String className,
                          IPentahoDefinableObjectFactory.Scope scope,
                          ClassLoader loader)
        Deprecated.
        Defines a new object that must be loaded with a specific classloader
        Parameters:
        key - - typically the interface name
        className - - the name of the class to instatiate
        scope - - the scope of the object
        loader - - the loader to be used to create the class
      • defineInstance

        void defineInstance​(String key,
                            Object instance)
        Deprecated.
        Defines a new object instance.
        Parameters:
        key - - typically the interface name
        instance - - the object instance to return when asked for by key