Class PrototypePentahoObjectReference<T>
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.objfac.references.AbstractPentahoObjectReference<T>
-
- org.pentaho.platform.engine.core.system.objfac.references.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 configuredIObjectCreator
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrototypePentahoObjectReference.Builder<T>
Public builder, implementation specific methods should be in BuilderBase, only self() should be defined here
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
createObject()
-
Methods inherited from class org.pentaho.platform.engine.core.system.objfac.references.AbstractPentahoObjectReference
compareTo, getAttributes, getObject, getObjectClass, getRanking
-
-
-
-
Method Detail
-
createObject
protected T createObject() throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
createObject
in classAbstractPentahoObjectReference<T>
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
-