Class BeanInjector
- java.lang.Object
-
- org.pentaho.di.core.injection.bean.BeanInjector
-
public class BeanInjector extends Object
Engine for get/set metadata injection properties from bean.
-
-
Constructor Summary
Constructors Constructor Description BeanInjector(BeanInjectionInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getObject(Object root, String propName)
Object
getProperty(Object root, String propName)
Object
getPropVal(Object root, String propName)
Retrieves the raw prop value from root object.boolean
hasProperty(Object root, String propName)
void
runPostInjectionProcessing(Object object)
void
setProperty(Object root, String propName, List<org.pentaho.di.core.RowMetaAndData> data, String dataN)
-
-
-
Constructor Detail
-
BeanInjector
public BeanInjector(BeanInjectionInfo info)
-
-
Method Detail
-
getPropVal
public Object getPropVal(Object root, String propName)
Retrieves the raw prop value from root object.The similar
getProperty(Object, String)
method (also in this class )should be revisited and possibly eliminated. That version attempts to retrieve indexed prop vals from lists/arrays, but doesn't provide a way to retrieve the list or array objects themselves.
-
getProperty
public Object getProperty(Object root, String propName) throws Exception
- Throws:
Exception
-
setProperty
public void setProperty(Object root, String propName, List<org.pentaho.di.core.RowMetaAndData> data, String dataN) throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
runPostInjectionProcessing
public void runPostInjectionProcessing(Object object)
-
-