Class PojoComponent
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.PentahoBase
-
- org.pentaho.platform.engine.services.PentahoMessenger
-
- org.pentaho.platform.engine.services.solution.ComponentBase
-
- org.pentaho.platform.engine.services.solution.PojoComponent
-
- All Implemented Interfaces:
Serializable
,org.pentaho.platform.api.engine.IAuditable
,org.pentaho.platform.api.engine.IComponent
,org.pentaho.platform.api.engine.ILogger
,org.pentaho.platform.api.engine.IParameterResolver
public class PojoComponent extends ComponentBase
Deprecated.Pojo components are deprecated, useIAction
This class interfaces with a plain old Java object and makes it available as a component within the Hitachi Vantara platform. Resources and Input Parameters are set on a Pojo via setters. Any public setter is available to both, without bias. The setters are called individually for Resources and Input Parameters and as such may be called for each one should a parameter exist in both forms. Resources are processed first, followed by Input Parameters giving Input Parameters the power to override. All public getters are exposed through the PojoComponent for consumption as Output Parameters within an Action Sequence. There exist special methods which may be defined on a Pojo (No interface needed) in order to better facilitate integration to the platform. They are as follows: configure validate execute done getOutputs setResources setInputs setLogger setSession setOutputStream / getMimeType- Author:
- jamesdixon
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
pojo
Deprecated.-
Fields inherited from class org.pentaho.platform.engine.services.solution.ComponentBase
COMPONENT_EXECUTE_FAIL, debug, MISSING_SESSION, UNKNOWN_COMPONENT_ID
-
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description PojoComponent()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
callMethod(Method method, Object value)
Deprecated.protected void
callMethods(List<Method> methods, Object value)
Deprecated.protected void
callMethodWithString(List<Method> methodList, String value)
Deprecated.void
done()
Deprecated.protected boolean
executeAction()
Deprecated.org.apache.commons.logging.Log
getLogger()
Deprecated.boolean
init()
Deprecated.void
setPojo(Object pojo)
Deprecated.protected boolean
validateAction()
Deprecated.protected boolean
validateSystemSettings()
Deprecated.-
Methods inherited from class org.pentaho.platform.engine.services.solution.ComponentBase
addTempParameter, addTempParameterObject, applyInputsToFormat, audit, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createFeedbackParameter, createNewInstance, execute, feedbackAllowed, getActionDefinition, getActionName, getActionTitle, getComponentDefinition, getComponentDefinition, getContentOutputItem, getDefaultOutputStream, getFeedbackOutputStream, getId, getInitFailMessage, getInitOk, getInputBooleanValue, getInputLongValue, getInputNames, getInputParameter, getInputStream, getInputStringValue, getInputStringValue, getInputValue, getInstanceId, getLogId, getObjectName, getOutputContentItem, getOutputContentItem, getOutputItem, getOutputItem, getOutputNames, getOutputPreference, getProcessId, getResource, getResourceAsString, getResourceDataSource, getResourceInputStream, getResourceNames, getRuntimeContext, getSession, getSetting, getSolutionName, getSolutionPath, getStringSetting, inputMissingError, isDefinedInput, isDefinedOutput, isDefinedResource, isPromptPending, outputMissingError, promptNeeded, promptNow, resolveParameter, resourceComponentSettingError, resourceMissingError, saveSetting, setActionDefinition, setActionName, setComponentDefinition, setComponentDefinitionMap, setFeedbackMimeType, setInstanceId, setOutputMimeType, setOutputMimeType, setOutputValue, setProcessId, setRuntimeContext, setSession, validate
-
Methods inherited from class org.pentaho.platform.engine.services.PentahoMessenger
debug, debug, error, error, error, fatal, fatal, getMessages, getUserString, info, info, setMessages, trace, trace, warn, warn
-
Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase
genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, setLoggingLevel, setLogId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
pojo
protected Object pojo
Deprecated.
-
-
Method Detail
-
getLogger
public org.apache.commons.logging.Log getLogger()
Deprecated.- Specified by:
getLogger
in classPentahoBase
-
done
public void done()
Deprecated.- Specified by:
done
in interfaceorg.pentaho.platform.api.engine.IComponent
- Specified by:
done
in classComponentBase
-
callMethod
protected void callMethod(Method method, Object value) throws Throwable
Deprecated.- Throws:
Throwable
-
callMethods
protected void callMethods(List<Method> methods, Object value) throws Throwable
Deprecated.- Throws:
Throwable
-
callMethodWithString
protected void callMethodWithString(List<Method> methodList, String value) throws Throwable
Deprecated.- Throws:
Throwable
-
executeAction
protected boolean executeAction() throws Throwable
Deprecated.- Specified by:
executeAction
in classComponentBase
- Throws:
Throwable
-
init
public boolean init()
Deprecated.- Specified by:
init
in interfaceorg.pentaho.platform.api.engine.IComponent
- Specified by:
init
in classComponentBase
-
validateAction
protected boolean validateAction()
Deprecated.- Specified by:
validateAction
in classComponentBase
-
validateSystemSettings
protected boolean validateSystemSettings()
Deprecated.- Specified by:
validateSystemSettings
in classComponentBase
-
setPojo
public void setPojo(Object pojo)
Deprecated.
-
-