Class PrototypePentahoObjectReference<T>

  • All Implemented Interfaces:
    Comparable<org.pentaho.platform.api.engine.IPentahoObjectReference<T>>, org.pentaho.platform.api.engine.IPentahoObjectReference<T>

    public class PrototypePentahoObjectReference<T>
    extends AbstractPentahoObjectReference<T>
    This reference type will call the configured IObjectCreator to serve every call to getObject(). While this class is called "Prototype", the implementation of the configured IObjectCreator is not required to return unique instances. This is done to support other unanticipated object lifecycles.

    Created by nbaker on 4/15/14.

    • Constructor Detail

      • PrototypePentahoObjectReference

        public PrototypePentahoObjectReference​(Class<T> type,
                                               org.pentaho.platform.api.engine.IObjectCreator<T> creator,
                                               Map<String,​Object> attributes,
                                               Integer priority)
    • Method Detail

      • createObject

        protected T createObject()
                          throws org.pentaho.platform.api.engine.ObjectFactoryException
        Specified by:
        createObject in class AbstractPentahoObjectReference<T>
        Throws:
        org.pentaho.platform.api.engine.ObjectFactoryException