Class SingletonPentahoObjectReference<T>

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

    public class SingletonPentahoObjectReference<T>
    extends AbstractPentahoObjectReference<T>
    A simple wrapper Reference around an object. It will always return the same object that it was created with.

    Created by nbaker on 4/15/14.

    • Constructor Detail

      • SingletonPentahoObjectReference

        public SingletonPentahoObjectReference​(Class<T> type,
                                               T obj)
      • SingletonPentahoObjectReference

        public SingletonPentahoObjectReference​(Class<T> type,
                                               T obj,
                                               Map<String,​Object> attributes,
                                               int 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