Interface IPentahoRegistrableObjectFactory

  • All Superinterfaces:
    IPentahoObjectFactory

    public interface IPentahoRegistrableObjectFactory
    extends IPentahoObjectFactory
    Supports the registration of new implementations with the IPentahoObjectFactory at runtime. Created by nbaker on 4/15/14.
    • Method Detail

      • registerObject

        <T> IPentahoObjectRegistration registerObject​(T obj)
        Register an Object instance with the ObjectFactory. It will be registered implicitly under Types.ALL
        Parameters:
        obj -
        Returns:
        a IPentahoObjectRegistration handle allowing de-registration later
      • registerObject

        <T> IPentahoObjectRegistration registerObject​(T obj,
                                                      Class<?>... classes)
        Register an Object instance with the ObjectFactory for the given classes
        Parameters:
        obj -
        classes -
        Returns:
        a IPentahoObjectRegistration handle allowing de-registration later
      • registerReference

        <T> IPentahoObjectRegistration registerReference​(IPentahoObjectReference<T> reference)
        Register an IPentahoObjectReference with the factory under Types.ALL
        Type Parameters:
        T - Type of the object described by this reference.
        Parameters:
        reference - IPentahoObjectReference to be registered
        Returns:
        a IPentahoObjectRegistration handle allowing de-registration later
      • registerReference

        <T> IPentahoObjectRegistration registerReference​(IPentahoObjectReference<T> reference,
                                                         Class<?>... classes)
        Register an IPentahoObjectReference with the factory for the given Types.
        Type Parameters:
        T - Type of the object described by this reference.
        Parameters:
        reference - IPentahoObjectReference to be registered
        classes - Classes to be registered under.
        Returns:
        a IPentahoObjectRegistration handle allowing de-registration later