OutputListItemToInputTransform Class

com.bea.p13n.advisor
OutputListItemToInputTransform Class

public class OutputListItemToInputTransform

    extends OutputToInputTransform

This is an AdviceTransform that takes the last RESULT key (getResult return value) from the Advice object and puts it into the key specified in the "output-key" parameter field in the AdviceRequest. Additionally, if the result object is a List only the first item of the List is added to the AdviceRequest.

If the Advice is null or incomplete no transformation is performed.


Hierarchy
Object
  AbstractAdviceTransform
    OutputToInputTransform
      OutputListItemToInputTransform
All Implemented Interfaces

AdviceConstants, AdviceRequestConstants, AdviceTransform, AdvisletChainElement

Constructor Summary

OutputListItemToInputTransform(Advisor advisor, Metadata metadata)

Construct an instance of this object and bind it to its Advisor and Metadata instances.
 

Method Summary

public void
transform(Advice input, AdviceRequest output)
Transforms the given Advice into AdviceRequest to pass it to another Advisor in the advislet chain defined in the advislet registry.
 
Methods from  com.bea.p13n.advisor.OutputToInputTransform
getRequestKey, getSpecificKey, getSpecificValue, initialize,
 
Methods from  com.bea.p13n.advisor.AbstractAdviceTransform
getMetadata, initialize, toString, transform
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.p13n.advisor.AdviceTransform
transform
 
Methods from interface com.bea.p13n.advisor.AdvisletChainElement
getMetadata, initialize
 

Constructor Detail

OutputListItemToInputTransform

public OutputListItemToInputTransform(Advisor advisor, 
                                      Metadata metadata)
Construct an instance of this object and bind it to its Advisor and Metadata instances.
 

Method Detail

transform(Advice, AdviceRequest) Method

public void transform(Advice input, 
                      AdviceRequest output)
throws AdvisorException
Description copied from AbstractAdviceTransform.transform(Advice, AdviceRequest)
Transforms the given Advice into AdviceRequest to pass it to another Advisor in the advislet chain defined in the advislet registry.

Overrides
OutputToInputTransform.transform(Advice, AdviceRequest)

Parameters

input
An Advice from which the parameters are extracted and transformed.
output
An AdviceRequest that is prepared from the given Advice.

Exceptions

AdvisorException